protected virtual void OnBeingAttacked(AttackEventArgs args) { BeingAttacked?.Invoke(args); }
public virtual void StartAttack() { Console.WriteLine($"King {this.Name} is under attack!"); BeingAttacked?.Invoke(this, EventArgs.Empty); }
protected virtual void OnBeingAttacked() { Console.WriteLine($"King {this.Name} is under attack!"); BeingAttacked?.Invoke(this, EventArgs.Empty); }
private void OnBeingAttacked() { BeingAttacked?.Invoke(this, EventArgs.Empty); }