Exemplo n.º 1
0
 public void DrawDebug(bool activate)
 {
     if (!activate)
     {
         return;
     }
     for (int i = 0; i < base.AILayers.Count; i++)
     {
         IAIDrawDebugger iaidrawDebugger = base.AILayers[i] as IAIDrawDebugger;
         if (iaidrawDebugger != null)
         {
             iaidrawDebugger.DrawDebug(activate);
         }
     }
 }
Exemplo n.º 2
0
 public void DrawDebug(bool activate)
 {
     if (!activate)
     {
         return;
     }
     for (int i = 0; i < this.aiCommanders.Count; i++)
     {
         for (int j = 0; j < this.aiCommanders[i].Missions.Count; j++)
         {
             if (this.aiCommanders[i].Missions[j] != null)
             {
                 IAIDrawDebugger iaidrawDebugger = this.aiCommanders[i].Missions[j] as IAIDrawDebugger;
                 if (iaidrawDebugger != null)
                 {
                     iaidrawDebugger.DrawDebug(activate);
                 }
             }
         }
     }
 }