public async Task StopGame() { DetachAcc(); _gameOver = true; await _ship.BlowUp(); _obstecles.stop(); _scene?.RemoveAllComponents(); _scene?.RemoveAllChildren(); Application.UI.Root.RemoveAllChildren(); GameOvered?.Invoke(); }
private void GameOver() { GameOvered?.Invoke(); _stateHandler.MoleEscaped -= OnMoleEscaped; }
/// <summary> /// Send GameOvered event /// </summary> public static void GameOver() { GameOvered?.Invoke(); }