Exemple #1
0
        private void OnLogin(Dictionary <string, string> i_result)
        {
            mLoginTimer.StepComplete(LibraryAnalyticEvents.ON_LOGIN_TIME);
            IdleFantasyBackend backend = (IdleFantasyBackend)mBackend;

            backend.SetLoggedInTime();

            MyMessenger.Send <LogTypes, string, string>(MyLogger.LOG_EVENT, LogTypes.Info, "Login success", "");

            MyMessenger.Send(BackendMessages.LOGIN_SUCCESS);
        }
Exemple #2
0
        void Start()
        {
            mBackend = new IdleFantasyBackend();
            BackendManager.Init(mBackend);

            MyMessenger.AddListener(BackendMessages.LOGIN_SUCCESS, OnLoginSuccess);
            MyMessenger.AddListener <IBackendFailure>(BackendMessages.BACKEND_REQUEST_FAIL, OnBackendFailure);

            LoginStatusText.text = STATUS_CONNECTING;

            mLogin = new Login(mBackend, mLoginTimer);
            mLogin.Start();
        }