// Start is called before the first frame update void Start() { health = maxHealth; currentHealth = maxHealth; takingIceDamage = false; frozen = false; takingPoisonDamage = false; isWet = false; takingElectricDamage = false; aiden = PlayerManager.instance.player.gameObject; gun = aiden.GetComponentInChildren <Gun>(); agent = GetComponent <NavMeshAgent>(); enemyTactics = GetComponent <EnemyTactics>(); animator = GetComponent <Animator>(); animator.SetBool("Dead", false); hitAnimationTimer = Random.Range(3f, 6f); }
// Start is called before the first frame update void Start() { enemyTactics = GetComponent <EnemyTactics>(); }