Exemplo n.º 1
0
 void Death()
 {
     currentHealth = 1;
     anim.SetTrigger("Death");
     anim.SetBool("is_dead", true);
     playerLevel.GainExperience(experienceVal, "Killed Orc For " + experienceVal + " Experience");
     Destroy(gameObject, 5f);
     isDead = true;
 }