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);
        }
Ejemplo n.º 2
0
 private void OnFrameMessageReceived(AdvanceFrameMessage aMessage)
 {
     myLastAdvancedFrame = aMessage;
     base.Update();
 }