예제 #1
0
 private void Death()
 {
     state.death       = true;
     state.control     = false;
     timers.deathTimer = deathTime;
     animator.AnimatorDeath();
     lives -= 1;
 }
예제 #2
0
 public void Respawn()
 {
     state.death = false;
     animator.AnimatorDeath();
     rb.transform.position    = checkpoint;
     rb.velocity              = Vector3.zero;
     playerManager.currHealth = 1000;
     state.Reset_State();
     timers.immuneTimer = 3.0f;
 }