Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     moveController = this.GetComponent<MoveController> ();
     anim = this.GetComponent<Animator> ();
     if (targetObj != null)
         targetMoveController = targetObj.GetComponent<MoveController> ();
     if (thisBehavior == DogBehavior.SeekAStar3D) {
         moveController.Set3D (true);
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag ("Player").transform;
     moveController = this.GetComponent<MoveController> ();
     anim = this.GetComponent<Animator> ();
     if (targetObj != null)
         targetMoveController = targetObj.GetComponent<MoveController> ();
     if (thisBehavior == DogBehavior.SeekAStar3D) {
         moveController.Set3D (true);
     }
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     moveController = this.GetComponent<MoveController> ();
     anim = this.GetComponent<Animator> ();
     health = this.GetComponent<EnemyHealth> ();
     if (targetObj != null)
         targetMoveController = targetObj.GetComponent<MoveController> ();
     if (thisBehavior == Behavior.SeekAStar3D) {
         moveController.Set3D (true);
     }
     trail = this.GetComponent<TrailRenderer> ();
     trail.enabled = false;
     startSpeed = moveController.maxSpeed;
 }