public void GameEnd() { clicsActive = false; if (!ScoreUpdatesHolda.rankingHolder.IsScoreMax(getScore(), size, timer.initMinutes)) { //high score in category source.PlayOneShot(gameEndSound); TimeUpCanvas.SetActive(true); TimeUpCanvas.SendMessage("UpdateScore"); } else { //other than high score, TODO = handle the score update UI and the actual score update source.PlayOneShot(gameEndSound); highScoreCanvas.SetActive(true); highScoreCanvas.SendMessage("UpdateScore"); } }
public void GameStart() { foreach (Transform t in transform) { if (t != pathDisplay) { Destroy(t.gameObject); } } scoreManager.score = 0; timer.TimerStart(); InitializeMatrix(); RemoveConnections(size); TimeUpCanvas.SetActive(false); highScoreCanvas.SetActive(false); clicsActive = true; StartGamePhase(); }