private void VerifyGoToGameplay() { if (Input.GetKeyDown(KeyCode.Space)) { if (gameState.Equals(Enums.GameState.MainMenu)) { ChangeGameStateTo(Enums.GameState.Gameplay); } } }
private void OnSetGameState(Enums.GameState state) { gameState = state; if (state.Equals(Enums.GameState.Gameplay)) { ResetCurrentScores(); } SetScore(score); }
private void SetScore(Score _score) { if (gameState.Equals(Enums.GameState.MainMenu)) { scoreManagerView.SetCurrentHighScore(_score); } else { scoreManagerView.SetCurrentScore(_score); } }
private void OnSetGameState(Enums.GameState state) { if (state.Equals(Enums.GameState.Gameplay)) { uiManagerView.HideMainMenuUI(); uiManagerView.ShowGameplayUI(); } else { uiManagerView.ShowMainMenuUI(); uiManagerView.HideGameplayUI(); } }
private void OnSetGameState(Enums.GameState state) { if (state.Equals(Enums.GameState.Gameplay)) { bulletsGenerationCoroutine = StartCoroutine(GenerateBullets()); } else { if (bulletsGenerationCoroutine != null) { StopCoroutine(bulletsGenerationCoroutine); } } }