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