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); }
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); }