Пример #1
0
 private void Start()
 {
     this.rndRadius = (float)this.m_actors.Length;
     for (int i = 0; i < this.m_actors.Length; i++)
     {
         BodyAISimple component = this.m_actors[i].gameObject.GetComponent <BodyAISimple>();
         if (null != component)
         {
             component.m_activeOffscreen = true;
         }
     }
 }
Пример #2
0
 private void Start()
 {
     m_brain = GetComponent <BrainBase>();
     m_body  = GetComponent <BodyAISimple>();
     m_agent = GetComponent <NavMeshAgent>();
 }