public static void RemoveTurret(RailgunTurret rgt) { if (!instance) { return; } if (instance.turrets.Count > 0) { instance.turrets.Remove(rgt); } if (instance.turrets.Count < 1) { instance.gameObject.SetActive(false); } }
public static void AddNewRailgunTurret(RailgunTurret rgt) { instance.turrets.Add(rgt); }
public static void MakeRailgunSpecial(RailgunTurret rt) { instance.railgunBtn.SetActive(true); RailgunSpecial.AddNewRailgunTurret(rt); }