public void gaming(int score) { round = ball.round_number(); Debug.Log(round); if (round < 39) { Debug.Log("re" + round); roundScore [round] = score; panelScore.ScoreDisplay(roundScore); if (round % 2 == 1) { panelScore.Score_round(roundScore); } } else if (round == 39) { roundScore [round] = score; panelScore.ScoreDisplay(roundScore); panelScore.Score_round(roundScore); SumScore1 = panelScore.ScoreSum_Player1(); SumScore2 = panelScore.ScoreSum_Player2(); Debug.Log("s1" + SumScore1); Debug.Log("s2" + SumScore2); Invoke("SumFunction", 1); } }