Esempio n. 1
0
        // Update the initial itself, based on the selected character from SelectCharacters
        void updateInitialValue(int direction)
        {
            if (workingHighScore != null)
            {
                // Update the current selected position
                currentSelectedCharIndex += direction;

                // "scroll" through possible selections
                if (currentSelectedCharIndex < 0)
                {
                    currentSelectedCharIndex = selectableCharacters.Length - 1;
                }
                if (currentSelectedCharIndex >= selectableCharacters.Length)
                {
                    currentSelectedCharIndex = 0;
                }


                string currentCharacter = selectableCharacters.Substring(currentSelectedCharIndex, 1);

                workingHighScore.SetInitialAt(currentCaretIndex, currentCharacter);
                displayScore();
            }

            if (updateCallbackFunc != null)
            {
                updateCallbackFunc(this.gameObject);
            }
            currentInputDelay = InputDelay;             // Reset the input delay
        }