Esempio n. 1
0
 void recalculateScores(PotType nextTrending)
 {
     GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
     for (int i = 0; i < players.Length; i++)
     {
         PotDetector potDetector = players[i].GetComponent <PotDetector>();
         potDetector.recalculateScore(nextTrending);
     }
 }
Esempio n. 2
0
 void GetPlayersScore()
 {
     GameObject[] players = GameObject.FindGameObjectsWithTag("Player");
     for (int i = 0; i < players.Length; i++)
     {
         PotDetector potDetector = players[i].GetComponent <PotDetector>();
         potDetector.GetPlayerScore(trend);
     }
 }