Exemple #1
0
    // Start is called before the first frame update
    void Awake()
    {
        instance                            = this;
        currentMenuState                    = MenuState.noMenu;
        currentTextSpeedState               = textSpeedState.normal;
        currentSpeedIndicatorPosition       = speedIndicator.GetComponent <RectTransform>();
        currentSoundEffectIndicatorPosition = soundEffectIndicator.GetComponent <RectTransform>();

        //sound effects are on by default
        soundEffectIndicatorTextObjects[0].fontStyle = FontStyles.Bold;
    }
Exemple #2
0
 public void PressNormalSpeed()
 {
     currentTextSpeedState = textSpeedState.normal;
     callClickSound();
 }
Exemple #3
0
 public void PressFastSpeed()
 {
     currentTextSpeedState = textSpeedState.fast;
     callClickSound();
 }
Exemple #4
0
 public void PressSlowSpeed()
 {
     currentTextSpeedState = textSpeedState.slow;
     callClickSound();
 }