// Use this for initialization void Start() { animator = GetComponent<AgentAnimationController> (); animalAgent = GetComponent<AnimalAgent> (); navAgent = GetComponent<NavMeshAgent> (); Debug.Assert (Camera.main != null); cameraTransform = Camera.main.transform; }
protected Agent(UUID agentId, Uri homeURI) { Attachments = new AgentAttachments(); Group = UGI.Unknown; ID = agentId; HomeURI = homeURI; m_AnimationController = new AgentAnimationController(this, SendAnimations); AllowUnsit = true; }
private void Start() { animController = GetComponent <AgentAnimationController>(); }
new void Start() { base.Start (); agent = GetComponent<NavMeshAgent>(); agent.speed = dna.GetSpeed(); heading = transform.forward; rigibody = GetComponent<Rigidbody>(); this.m_animator = GetComponent<AgentAnimationController>(); this.perceptGetter = GetComponent<PerceptGetter>(); perceptGetter.radius = dna.GetVisionDistance(); //this.health = 200; //this.healthMax = 200; wiggleTimer = wiggleTimerMax; ioda = GetComponent<IODA.IODAAgent>(); ioda.agentName = "Animal"; }