Exemplo n.º 1
0
 void Awake()
 {
     EngineAI = Engines.GetComponent<AI_Engines> ();
     LifeSupportAI = LifeSupport.GetComponent<AI_LifeSupport> ();
     HardpointsAI = HardpointManager.GetComponent<AI_Hardpoints> ();
     foreach (Transform child in HardpointManager.transform)
     {
         Hardpoints.Add(child.gameObject);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     EngineAI      = Engines.GetComponent <AI_Engines> ();
     LifeSupportAI = LifeSupport.GetComponent <AI_LifeSupport> ();
     HardpointsAI  = HardpointManager.GetComponent <AI_Hardpoints> ();
     foreach (Transform child in HardpointManager.transform)
     {
         Hardpoints.Add(child.gameObject);
     }
 }