예제 #1
0
 public void ReactToHit(float k)
 {
     if (ei.hp <= 0)
     {
         ei.Death();
     }
     ei.hp -= k * 0.1f * ei.maxhp;
     Debug.Log("Health:" + ei.hp);
 }