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