Esempio n. 1
0
 protected override void Awake()
 {
     base.Awake();
     _gameOverCanvas = gameOverUI.GetComponent <Canvas>();
     gameOverUI.OnRepeatButtonClick   += () => ChangeState(GameState.Gameplay);
     gameOverUI.OnMainMenuButtonClick += () => ChangeState(GameState.MainMenu);
 }