protected override void initHandlers() { base.initHandlers(); connectionToServer.RegisterHandler((short)SnakeProtocol.MsgType.playerInit, handleInitSettings); connectionToServer.RegisterHandler((short)SnakeProtocol.MsgType.boardUpdate, handleBoardUpdate); connectionToServer.RegisterHandler((short)SnakeProtocol.MsgType.gameInfo, handleGameInfo); StartCoroutine(findAndInitRenderer <SnakeRenderer>((x) => localRenderer = x)); StartCoroutine(handleNetworkMsgQueue()); RealtimeTCPController.resetController(); TCPMessageQueue.readMsgInstant = readTCPMsg; localRenderer.init(localGameUI); }