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); }
public void OnHit(int damage) { StatusTextView.Create(damage.ToString(), Color.red, GetHitPoint()); }