Exemple #1
0
    void Start()
    {
        hp = maxHp;
        enemyUIManager.Init(this);

        animator          = GetComponent <Animator>();
        agent             = GetComponent <NavMeshAgent>();
        agent.destination = target.position;
        HideColliderWeapon();
    }
    void Start()
    {
        hp = maxHp;
        enemyUIManager.Init(this);

        anim        = GetComponent <Animator>();
        agent       = GetComponent <NavMeshAgent>();
        audioSource = GetComponent <AudioSource>();
        HideColliderWeapon();
    }
Exemple #3
0
 void Start()
 {
     hp = maxHp;
     Debug.Log("calling init with maxHp" + maxHp);
     weaponCollider.GetComponent <Damager>().damage = 50;
     enemyUIManager.Init(this);
     animator          = GetComponent <Animator>();
     agent             = GetComponent <NavMeshAgent>();
     agent.destination = target.position;
     DisableWeaponCollider();
 }