コード例 #1
0
 void updateCatStandings()
 {
     // send out placement to each cat
     for (int i = 0; i < cats.Length; i++)
     {
         cats[i].setPositionInRace(System.Array.IndexOf(catStandings, cats[i]));
     }
     // each cat gives it to their UI
     // send out placement to UI
     leaderboardUI.updateStandings(catStandings);
 }