Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     base.Start();
     wizardAnimator = GetComponent <Animator>();
     nav            = GetComponent <NavMeshAgent>();
     firePos        = transform.GetChild(2).gameObject;
     aggro          = GetComponent <FindAggroTarget>();
     wand           = transform.GetChild(2).gameObject;
     wandPos        = wand.transform.position;
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     aggroTarget = GetComponent <FindAggroTarget>();
     animator    = GetComponent <Animator>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     aggroTarget = transform.parent.GetComponent <FindAggroTarget>();
     attack      = transform.parent.GetComponent <Attack>();
 }