Пример #1
0
    void Update()
    {
        //Hotkey controls over options menu
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            switch (state)
            {
            case PauseMenuStates.Unpaused:
                Pause();
                break;

            case PauseMenuStates.PauseMain:
                UnPause();
                break;

            case PauseMenuStates.OptionsMenu:
                OptionsToPauseMain();
                break;
            }
            sfxManager.SpawnUI_1_Click();
        }
    }
Пример #2
0
 void PlaySfx()
 {
     sfxManager.SpawnUI_1_Click();
 }