コード例 #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);
 }