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(); }
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(); }