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