public override void Update()
        {
            base.Update();

            AdvanceFrameMessage frameMessage = new AdvanceFrameMessage();

            frameMessage.Actions     = myPlayerInfo.myMappedActions.GetActiveActions().ToList();
            frameMessage.PlayerIndex = myPlayerInfo.myPlayerIndex;
            frameMessage.FrameIndex  = myElapsedFrames - 1;
            NetPoster.Instance.PostMessage(frameMessage);
        }
示例#2
0
 private void OnFrameMessageReceived(AdvanceFrameMessage aMessage)
 {
     myLastAdvancedFrame = aMessage;
     base.Update();
 }