Exemplo n.º 1
0
 //costs stuff
 public static void TowerWasBuilt(string TowerType)
 {
     if (TowerType == "Gun")
     {
         m_resources -= BuildManager.Resources;
         TroopManager.DestroyTroop(BuildManager.ManPower);
     }
     else if (TowerType == "Rocket")
     {
         m_resources -= BuildManager.Resources;
         TroopManager.DestroyTroop(BuildManager.ManPower);
     }
     else if (TowerType == "SAM")
     {
         m_resources -= BuildManager.Resources;
         TroopManager.DestroyTroop(BuildManager.ManPower);
     }
     else if (TowerType == "Tesla")
     {
         m_resources -= BuildManager.Resources;
         TroopManager.DestroyTroop(BuildManager.ManPower);
     }
 }
Exemplo n.º 2
0
 public static void TowerWasUpgraded()
 {
     m_resources -= BuildManager.Resources;
     TroopManager.DestroyTroop(BuildManager.ManPower);
 }