Exemplo n.º 1
0
    private void OnCreateRoomEvent(object sender, CreateRoomEventArgs e)
    {
        CommonUtils.instance.SwitchViewMask(false);

        if (e.returnCode == (short)ResultCode.Success)
        {
            SceneHandler.instance.LoadScene("Room", false, false);
        }
        TLogger.DEBUG(e.debugMessage);
    }
Exemplo n.º 2
0
    public override void OnOperationResponse(OperationResponse operationResponse)
    {
        JoinRoomEventArgs args = new JoinRoomEventArgs();

        args.returnCode   = operationResponse.ReturnCode;
        args.debugMessage = operationResponse.DebugMessage;

        TLogger.DEBUG("OnJoinRoom");
        JoinRoomEvent(this, args);
    }
Exemplo n.º 3
0
    private void OnJoinRoomEvent(object sender, JoinRoomEventArgs e)
    {
        CommonUtils.instance.SwitchViewMask(false);

        TLogger.DEBUG("OnJoinRoomEvent.");

        if (e.returnCode == (short)ResultCode.Success)
        {
            SceneHandler.instance.LoadScene("Room", false, false);
        }
    }
Exemplo n.º 4
0
    public void OnStatusChanged(StatusCode statusCode)
    {
        switch (statusCode)
        {
        case StatusCode.Connect:
            IsConnected = true;
            TLogger.DEBUG(IsConnected.ToString());
            break;

        case StatusCode.Disconnect:
        case StatusCode.DisconnectByServer:
        case StatusCode.DisconnectByServerLogic:
            IsConnected = false;
            break;
        }
    }
Exemplo n.º 5
0
 public void DebugReturn(DebugLevel level, string message)
 {
     TLogger.DEBUG(message);
 }
Exemplo n.º 6
0
 public override void OnOperationResponse(OperationResponse operationResponse)
 {
     TLogger.DEBUG(operationResponse.DebugMessage);
 }