Exemplo n.º 1
0
 public void OnHit(Damage damage)
 {
     if (!Titan.IsAlive)
     {
         return;
     }
     if (damage.Value == 0)
     {
         StatusTextView.Create("Miss", Color.white, hitTransfom.position);
         return;
     }
     OnUpdateLives();
     StatusTextView.Create(damage.Value.ToString(), damage.Critical ? Color.red : Color.yellow, hitTransfom.position);
 }
Exemplo n.º 2
0
 public void OnHit(int damage)
 {
     StatusTextView.Create(damage.ToString(), Color.red, GetHitPoint());
 }