/// <summary> /// Instantiates the hit effect when the character is hit. /// </summary> public void OnHit(Hit hit) { instantiate(Hit, hit.Position); }
/// <summary> /// Reduce health on bullet hit. /// </summary> public void OnHit(Hit hit) { Deal(hit.Damage); }