public void Handle(object obj, Server_ServerClient client) { Message_Request_JoinQueue data = (Message_Request_JoinQueue)obj; client.info = data.playerInfo; client.info.GUID = GUIDCounter++; server.clientManager.RegisterClient(client); matchMaker.RegisterClient(client); var msg = new Message_Response_InQueue("You are now in queue, players in queue " + server.clientManager.GetClients().Count, client.info); server.messageSender.Send(msg, client); }
public void SetUIState_Queue(Message_Response_InQueue data) { DisableAll(); InQueue.SetActive(true); EventSystemReference.instance.EventSystem.SetSelectedGameObject(GameObject.Find("GUI_InQueue_Play")); }
public void InQueue(Message_Response_InQueue data) { guiHandler.SetUIState_Queue(data); }