예제 #1
0
        public async Task StopGame()
        {
            DetachAcc();
            _gameOver = true;
            await _ship.BlowUp();

            _obstecles.stop();
            _scene?.RemoveAllComponents();
            _scene?.RemoveAllChildren();
            Application.UI.Root.RemoveAllChildren();
            GameOvered?.Invoke();
        }
예제 #2
0
 private void GameOver()
 {
     GameOvered?.Invoke();
     _stateHandler.MoleEscaped -= OnMoleEscaped;
 }
예제 #3
0
 /// <summary>
 /// Send GameOvered event
 /// </summary>
 public static void GameOver()
 {
     GameOvered?.Invoke();
 }