public static void Load() { HeadQuarters.Load(); Turrets.Update(); Inhibitors.Update(); GameObject.OnCreate += OnCreate; GameObject.OnDelete += OnDelete; }
private static void OnDelete(GameObject sender, EventArgs args) { if (sender is Obj_AI_Turret) { Turrets.Update(); } if (sender is Obj_Barracks) { Inhibitors.Update(); } }