Esempio n. 1
0
 override public void TileWasSteppedOn(BaseTile WhichTile)
 {
     if (WhichTile.GetTileType() == TileType.LevelEnd)
     {
         return;
     }
     Sum += WhichTile.GetTileValue();
     if (Sum == Target)
     {
         ScoreboardIndicator.color = Color.green;
     }
     else
     {
         ScoreboardIndicator.color = Color.red;
     }
     Player.AddToScore(WhichTile.GetTileValue());
 }