private void OnMouseDown() { gc.IncreaseScore(); GoToNewPosition(); ChangeColor(); m_audio.Play(); starScript.SpawnStar(); // starScript.DestroyAllStars(); // starScript.SpawnTriangle(); }
public void ResetGame() { current_score = 0; game_time = (int)Time.time; end_time = (int)Time.time + countdown; gameOver.gameObject.SetActive(false); resetButton.gameObject.SetActive(false); // star.gameObject.SetActive(true); // star.ResetPositionAndScale(); timerStatus = true; destroyerOfWorlds.DestroyAllStars(); destroyerOfWorlds.SpawnStar(); }