// Use this for initialization
        void Start()
        {
            backtoryApi = BacktoryRealtimeUnityApi.Instance();
            backtoryApi.SetChatListener(this);

            addClickListeners();
//			btnOffline.onClick.Invoke ();
        }
        // Use this for initialization
        void Start()
        {
            PlayerPrefs.SetInt("MainLevel", Application.loadedLevel);

            // TODO: adapt to other parts of sdk
            BacktoryRealtimeUnityApi.Initialize(BacktoryConfig.BacktoryConnectivityInstanceId);

            backtoryApi = BacktoryRealtimeUnityApi.Instance();
            backtoryApi.SetRealtimeSdkListener(this);
            backtoryApi.SetMatchmakingListener(this);
            backtoryApi.SetChallengeListener(this);

            ifUsername.text      = "user1";
            ifPassword.inputType = InputField.InputType.Password;
            ifPassword.text      = "a";

            addClickListeners();
        }