Exemplo n.º 1
0
 // Update is called once per frame
 void Start()
 {
     wizardAnimator = gameObject.GetComponentInChildren <Animator> ();
     navAgent       = gameObject.GetComponent <NavMeshAgent> ();
     wizard         = gameObject.GetComponent <AIWizard> ();
     attackmMeans   = gameObject.GetComponent <WizardAttackMeans> ();
 }
Exemplo n.º 2
0
 public void ChangeOwner(AIWizard owner)
 {
     if (ActiveOwner != null)
     {
         ActiveOwner.ballStolen(this.gameObject);
     }
     this.transform.parent        = owner.transform;
     this.transform.localPosition = new Vector3(0f, 0f, 0f);
     ActiveOwner = owner;
 }
Exemplo n.º 3
0
 void Start()
 {
     aiwizard = gameObject.GetComponentInParent <AIWizard> ();
     shooting = false;
 }