public void ReturnToIdle() { timeToNextAttack = Random.Range(minIdleTime, maxIdleTime); previousTargetIndex = currentTarget.id; currentAttack = AttackBeingPerformed.None; currentTarget = null; animator.AnimateIdle(); }
// Use this for initialization void Awake() { animator = GetComponent <BossAnimationController>(); sound = GetComponent <EnemySoundController>(); tm = GameObject.FindGameObjectWithTag("TeamManager").GetComponent <TeamManager>(); turningTimer = timeSpentTurning; animator.AnimateIdle(); }