public void TriggerMarioActionStateChangedEvent(Mario mario) { MarioActionStateEventArgs args = new MarioActionStateEventArgs(mario); OnRaiseMarioActionStateEvent(args); }
protected virtual void OnRaiseMarioActionStateEvent(MarioActionStateEventArgs e) { EventHandler <MarioActionStateEventArgs> handler = RaiseMarioActionStateEvent; handler?.Invoke(e.Sender, e); }