public override IEnumerator OnEnterDeath() { UnitCollider.enabled = false; yield return(StartCoroutine(EnemyUnitUtils.StopWalkingOnPath(Walker))); animationController.OnDeath(); yield return(StartCoroutine(DieAfterTwoSeconds())); yield break; }
// Start is called before the first frame update public override IEnumerator OnEnterPreBattle() { animationController.OnIdle(); yield return(StartCoroutine(EnemyUnitUtils.StopWalkingOnPath(Walker))); }