示例#1
0
 public static void Load()
 {
     HeadQuarters.Load();
     Turrets.Update();
     Inhibitors.Update();
     GameObject.OnCreate += OnCreate;
     GameObject.OnDelete += OnDelete;
 }
示例#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();
     }
 }