public void Restart() { _ballsManager.Restart(); _playerController.Restart(); _bonusManager.Restart(); _leaderBoard.AddScore(_score); _leaderBoard.SetupLeaderBoard(); SetupScore(0); StartGameProccess(); }
public void _AddScore(int score) { leaderboard.AddScore(score, r => { RefeshStateUI(); Debug.LogWarning("Refesh"); RefeshLeaderboard(); }); }