예제 #1
0
 private void HasDied(BaseNPC Sender)//will change later
 {
     DiedPanel.SetActive(true);
     CurrentTarget = null;
     IsDead        = true;
     PlaceTargetWithMouse.Instance.CanMove = false;
     Controller.Anim.SetBool("Running", false);
     Controller.Anim.SetBool(Controller.AnimState, false);
     Controller.Anim.SetBool("Dead", true);
     GetComponent <BoxCollider>().enabled = false;
 }
예제 #2
0
 public void Respawn()
 {
     DiedPanel.SetActive(false);
     gameObject.SetActive(false);
     gameObject.transform.position = SpawnPoint;
     gameObject.SetActive(true);
     Health = 10;
     Mana   = 10;
     IsDead = false;
     PlaceTargetWithMouse.Instance.CanMove = true;
     Controller.Anim.SetBool("Dead", false);
     GetComponent <BoxCollider>().enabled = true;
 }