public void GameOver() { GameplayPanel.SetActive(false); currentGameState = GameState.GameOver; GameEndState state = succeedBallCount >= 3 ? GameEndState.Success : GameEndState.Fail; GameOverPanel.SetActive(true); WinStateText.text = "YOU " + (state == GameEndState.Success ? "WIN!" : "LOST!"); ScoreText.text = score.ToString(); LevelManager.Instance.ballRemaining = 5; succeedBallCount = 0; score = 0; scoreMultipler = 1; }
public void OnTapStart() { StartPanel.SetActive(false); GameplayPanel.SetActive(true); currentGameState = GameState.Running; }