private void OnBeingHit(BodyIdentification bodyIdentification)
    {
        switch (bodyIdentification)
        {
            case BodyIdentification.Chest:
                Debug.Log(bodyIdentification);
                break;
            case BodyIdentification.Hand:
                Debug.Log(bodyIdentification);
                break;
            case BodyIdentification.Head:
                Debug.Log(bodyIdentification);
                break;

        }

        label.text = string.Format("Hit {0}", bodyIdentification);
    }
Example #2
0
 internal void OnBeingHit(BodyIdentification bodyIdentification)
 {
     if (BeingHitEvent != null)
         BeingHitEvent(bodyIdentification);
 }