public void PushFrameCommand(IFrameCommand command) { command.cmdId = this.NewCommandId; if (this.bActive) { command.OnReceive(); } else { command.frameNum = this.CurFrameNum; } this.commandQueue.Enqueue(command); }
public void PushFrameCommand(IFrameCommand command) { command.cmdId = NewCommandId; if (_bActive) { command.OnReceive(); } else { command.frameNum = CurFrameNum; } commandQueue.Enqueue(command); }