void OnEnable() { onReceive = false; receiveSerials = clientController.AddSubscriptor(new ClientSubscriptor(OnReceive, new Command[1] { Command.M2C_WELCOME })); }
void OnEnable() { onReceive = false; receiveSerials = clientController.AddSubscriptor(new ClientSubscriptor(OnReceive, new Command[2] { Command.M2C_HUB_LIST, Command.M2C_START_GAME })); clientController.SendToServer(new Packet(Command.C2M_CHANGE_NICK, new string[1] { gameController.nick })); }
void OnEnable() { onReceive = false; receiveSerials = clientController.AddSubscriptor(new ClientSubscriptor(OnReceive, new Command[4] { Command.M2C_UPDATE_BOARD, Command.M2C_TURN_START, Command.M2C_START_CARDING, Command.M2C_SPELL_TARGETING })); //StartCoroutine(LoopSendingGameReady()); cardsHandler.UpdateCards(new List <int>(new int[3] { 2, 3, 4 }), 2, 1); }