public static void AddScore() { score++; scoreText.text = score.ToString(); if (score % instance.maxScore == 0) { Debug.Log("win"); instance.StartCoroutine(instance.ShowWin()); } instance.syncScoreText(); }