コード例 #1
0
        private void PushSharedGameState()
        {
            while (!_gameManager.SharedGameState.Board.Availability)
            {
            }
            PushSharedGameState pushInstruction = new PushSharedGameState()
            {
                SharedGameState = _gameManager.SharedGameState,
            };

            byte[] rawBytes = _protocol.ToLowerLayer(pushInstruction);
            this.Send(rawBytes);
        }
コード例 #2
0
 public void Send(RemoteInstruction instruction)
 {
     byte[] rawBytes = _protocol.ToLowerLayer(instruction);
     this.Send(rawBytes);
 }