Esempio n. 1
0
 void Update()
 {
     if (actAsCounter)
     {
         uint aScore = chestAScript.GetScore();
         uint bScore = chestBScript.GetScore();
         if (aScore + bScore != globalScore)
         {
             globalScore = aScore + bScore;
             SetScore(globalScore + myScore);
         }
     }
 }