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)) { } }