コード例 #1
0
 public void handlePlayerTimerCommand(NetworkMessage msg)
 {
     byte[] bytes = msg.reader.ReadBytesAndSize();
     Game.PlayerTimerMsg timeCommandMsg = Game.ClientController.Deserialize <Game.PlayerTimerMsg> (bytes);
     localGameUI.startTimer(timeCommandMsg.color, timeCommandMsg.maxTime);
 }
コード例 #2
0
 public void handlePlayerTimerInit(NetworkMessage msg)
 {
     byte[] bytes = msg.reader.ReadBytesAndSize();
     Game.PlayerTimerMsg initMsg = Game.ClientController.Deserialize <Game.PlayerTimerMsg> (bytes);
     localGameUI.initTimer(initMsg.color, initMsg.maxTime);
 }