478 {
479 string shuffledText;
480
481
483 for (int i = 0; i < lengthDiff; ++i)
484 {
485 combinationText = "0" + combinationText;
486 }
487
488
489 for (
int j = 0; j < combinationText.
Length(); ++j)
490 {
491 int dialNumber = combinationText.
Get(j).
ToInt();
493 shuffledText = shuffledText + dialNumber.
ToString();
494 if (!isInsideLock)
496 else
498 }
499
500 if (!isInsideLock)
502 else
504 }
void SetCombination(int combination, bool setOtherSide=true)
void SetCombinationInside(int combination, bool setOtherSide=true)
static float GetDigitRotation(int digitValue)
void SetDigitRotationAnimationPhaseOutside(string digitIndex, float rot)
void SetDigitRotationAnimationPhaseInside(string digitIndex, float rot)
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
proto native int Length()
Returns length of string.
proto string Get(int index)
Gets n-th character from string.
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.
proto native int ToInt()
Converts string to integer.