void OnEnable()
 {
     onReceive      = false;
     receiveSerials = clientController.AddSubscriptor(new ClientSubscriptor(OnReceive, new Command[1] {
         Command.M2C_WELCOME
     }));
 }
Ejemplo n.º 2
0
 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
     }));
 }
Ejemplo n.º 3
0
 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);
 }