public void DisplayGameOverMenu() { _isTransitionningGameOver = true; _gameOverMenu.SetActive(true); _fade_background.gameObject.SetActive(true); _gameOverMenu.Open(); _pauseButton.FindSelectableOnDown().Select(); _gameOverButton.Select(); GameManager.inst.State = GameManager.GameState.GameOver; TimeManager.timeScale = 0.0f; SoundManager.Instance.PauseSound(); //_compatibility.gameObject.SetActive(true); //_compatibility.Open(); Sequence sequence = DOTween.Sequence(); sequence.AppendInterval(.5f); sequence.AppendCallback(() => { _isTransitionningGameOver = false; }); sequence.Play(); }
private void DisplayMainMenuCallBack() { _pauseMenu.SetActive(false); HideGameOverMenu(); _mainMenu.SetActive(true); _fade_background.gameObject.SetActive(true); _compatibility.gameObject.SetActive(false); _startButton.Select(); GameManager.inst.State = GameManager.GameState.Menu; TimeManager.timeScale = 0.0f; }
public void DisplayPauseMenu() { _pauseMenu.SetActive(true); _fade_background.gameObject.SetActive(true); _pauseMenu.Open(); _pauseButton.FindSelectableOnDown().Select(); _pauseButton.Select(); GameManager.inst.State = GameManager.GameState.Paused; TimeManager.timeScale = 0.0f; SoundManager.Instance.PauseSound(); _compatibility.gameObject.SetActive(true); _compatibility.Open(); }