public void TriggerBrickBumpedEvent(AbstractBlock block, PowerUpType powerup, bool broken) { BrickBumpedEventArgs args = new BrickBumpedEventArgs(block, powerup, broken); OnRaiseBrickBumpedEvent(args); }
protected virtual void OnRaiseBrickBumpedEvent(BrickBumpedEventArgs e) { EventHandler <BrickBumpedEventArgs> handler = RaiseBrickBumpedEvent; handler?.Invoke(e.Sender, e); }