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; } } }
private void Start() { m_brain = GetComponent <BrainBase>(); m_body = GetComponent <BodyAISimple>(); m_agent = GetComponent <NavMeshAgent>(); }