// Use this for initialization
 void Start()
 {
     animator = GetComponent<AgentAnimationController> ();
     animalAgent = GetComponent<AnimalAgent> ();
     navAgent = GetComponent<NavMeshAgent> ();
     Debug.Assert (Camera.main != null);
     cameraTransform = Camera.main.transform;
 }
Example #2
0
 protected Agent(UUID agentId, Uri homeURI)
 {
     Attachments           = new AgentAttachments();
     Group                 = UGI.Unknown;
     ID                    = agentId;
     HomeURI               = homeURI;
     m_AnimationController = new AgentAnimationController(this, SendAnimations);
     AllowUnsit            = true;
 }
Example #3
0
 private void Start()
 {
     animController = GetComponent <AgentAnimationController>();
 }
Example #4
0
 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";
 }