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