Ejemplo n.º 1
0
 public void Damage(int amount)
 {
     StartCoroutine(LockMovement(0f, 0.5f));
     m_health.Modify(-amount);
     Debug.Log(string.Format("{0} has been taken {1} hp damage", gameObject.name, amount));
     m_animator.SetTrigger("GetHit1Trigger");
 }