示例#1
0
 public void UpgradeButton2()
 {
     if (Owner.GetType() == typeof(Traps))
     {
         Traps Temp = (Traps)Owner;
         Temp.SetSucessRate(TrapTypesUpgrades.RequestUpgradeAmount(UpgradeType.CatchSuccessChance, Temp.Type));
     }
     else if (Owner.GetType() == typeof(TurretController))
     {
     }
 }
示例#2
0
 public void UpgradeButton3()
 {
     if (Owner.GetType() == typeof(Traps))
     {
         Traps Temp = (Traps)Owner;
         Temp.SetCatcherRaduis(TrapTypesUpgrades.RequestUpgradeAmount(UpgradeType.CatchRaduis, Temp.Type));
     }
     else if (Owner.GetType() == typeof(TurretController))
     {
     }
 }
示例#3
0
 public void UpgradeButton1()
 {
     if (Owner.GetType() == typeof(Traps))
     {
         Traps Temp = (Traps)Owner;
         Temp.SetAttractionTime(TrapTypesUpgrades.RequestUpgradeAmount(UpgradeType.CatchCoolDown, Temp.Type));
     }
     else if (Owner.GetType() == typeof(TurretController))
     {
     }
 }