예제 #1
0
        private static void OnOpen()
        {
            // Notify ConnectionWatchdog that connection is ok
            ConnectionWatchdog.OnOpen();

            // observable
            FoolObservable.OnConnectedToGameServer();

            IsConnectingToGameServer = false;
            IsConnected = true;

            //authorize with token
            ClientSendPackets.Send_Authorize(myToken);
        }
예제 #2
0
 /// <summary>
 /// Give up or leave
 /// </summary>
 public static void LeaveRoom()
 {
     ClientSendPackets.Send_LeaveRoom();
     LocalPlayer.IsInRoom = false;
 }
예제 #3
0
 public static void JoinRoom(long roomId)
 {
     ClientSendPackets.Send_JoinRoom(roomId);
     //todo show 'loading'
 }
예제 #4
0
 /// <summary>
 /// Call to join any room with no matchmaking.
 /// </summary>
 public static void JoinRandom()
 {
     ClientSendPackets.Send_JoinRandom();
 }