コード例 #1
0
        public void TriggerBrickBumpedEvent(AbstractBlock block, PowerUpType powerup, bool broken)
        {
            BrickBumpedEventArgs args = new BrickBumpedEventArgs(block, powerup, broken);

            OnRaiseBrickBumpedEvent(args);
        }
コード例 #2
0
        protected virtual void OnRaiseBrickBumpedEvent(BrickBumpedEventArgs e)
        {
            EventHandler <BrickBumpedEventArgs> handler = RaiseBrickBumpedEvent;

            handler?.Invoke(e.Sender, e);
        }