public void Exit() { UiAudioManager.GetInstance().PlayClickSound(); Time.timeScale = 1; SceneManager.LoadScene("MainMenu"); }
void Awake() { if (instance != null && instance != this) { Destroy(gameObject); return; } else { instance = this; } source = GetComponent <AudioSource>(); DontDestroyOnLoad(gameObject); }
void Update() { if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Backspace)) { UiAudioManager.GetInstance().PlayClickSound(); if (Time.timeScale == 1) { ActionManager.OnGamePaused(); } else { ActionManager.OnGameResumed(); } } }
public void AboutOff() { UiAudioManager.GetInstance().PlayClickSound(); aboutPanel.SetActive(false); }
public void AboutShow() { UiAudioManager.GetInstance().PlayClickSound(); aboutPanel.SetActive(true); }
public void OnBtnExit() { UiAudioManager.GetInstance().PlayClickSound(); Application.Quit(); }
public void OnBtnStartGame() { UiAudioManager.GetInstance().PlayClickSound(); SceneManager.LoadScene("Toturial"); }
public void Restart() { UiAudioManager.GetInstance().PlayClickSound(); ActionManager.OnGameRestart(); }