Пример #1
0
        public static BowlingBallEventArgs Create(MessageBowlingBall msg)
        {
            //Log.Debug("middle {0} {1}", msg.Velocity, msg.Torque);

            BowlingBallEventArgs e = new BowlingBallEventArgs();

            e.msg = msg;
            return(e);
        }
Пример #2
0
        void OnBowlingBallHandler(object sender, GameEventArgs args)
        {
            BowlingBallEventArgs ne = args as BowlingBallEventArgs;

            if (ne != null)
            {
                Log.Debug("second {0} {1}", ne.msg.Velocity, ne.msg.Torque);
            }
        }