Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (TierSystemOn)
     {
         if (Controller.GetDistance() == TierInterval * (Tier + 1))
         {
             Tier += 1;
             ObstacleSpawner.OnTierChange();
             foreach (var spawner in TileSpawners)
             {
                 spawner.OnTierChange();
             }
         }
     }
 }