void Awake()
 {
     wizardMotor = GameObject.FindGameObjectWithTag("Boss").GetComponent <WizardMotor>();
     fist        = transform.Find("handofgod").gameObject;
     anim        = GetComponent <Animator>();
     fist.SetActive(false);
 }
Esempio n. 2
0
    void Awake()
    {
        var p = GameObject.FindGameObjectWithTag("Player");

        player = p.GetComponent <PlayerController>();

        Boss.boss = this;
        motor     = GetComponent <WizardMotor>();
        NextDecision();
        audioSource = GetComponent <AudioSource>();
    }
 void Awake()
 {
     wizardMotor = GameObject.FindGameObjectWithTag("Boss").GetComponent <WizardMotor>();
     anim        = GetComponent <Animator>();
     fistSpot    = transform.Find("FistSpot");
 }