public void PointThrow() { currentPoints++; OnPointThrow?.Invoke(currentPoints); if (currentPoints >= LevelData.instance.pointsNeeded) { OnLevelWin?.Invoke(); } print("Point Throw"); }
private void AddScore(int score) { this.score += score; OnScoreChange?.Invoke(this.score); if (FindObjectsOfType <Brick>().Length == 1) { OnLevelPause?.Invoke(false); OnLevelWin?.Invoke(level); } }