protected virtual void RecoverFromDamage() { if (Life == 0) { Die(); } else { _animator.SetInteger("state", (int)AnimationStates.Idle); NavEntity.EnableMoving(); CanBeDamaged = true; CanDamage = true; } }
public void WalkOutsideSpawnZone(List <Pacman.NavNode> path) { NavEntity.SetPath(path); NavEntity.EnableMoving(); StartCoroutine(WaitWalkingOutsideSpawnZone()); }