示例#1
0
 private void OnLoginFail(Air2000.Event varEvt)
 {
     if (mScene != null)
     {
         mScene.NotifySceneEvent(new Air2000.Event((int)SceneEventType.SE_NotifyTSDKLoginFail));
     }
 }
示例#2
0
        private void TSDKLoginSuccees(Air2000.Event varData)
        {
            mIsLoginSuccess = true;

            LoginSucceed();

            InvokeRepeating("RequestSeifInfo", 0f, 3f);

            Invoke("Timeout", 10f);
        }
示例#3
0
 /// <summary>
 /// 通知角色事件.
 /// </summary>
 /// <param name="varEvent"></param>
 public void NofityPlayerEvent(Air2000.Event eventObj)
 {
     if (eventObj == null)
     {
         return;
     }
     if (mEventManager == null)
     {
         Helper.LogError("NotifyPlayerEvent fail caused by null PlayerEventManager");
         return;
     }
     mEventManager.Notify(eventObj);
 }
示例#4
0
        private void OnNetWorkState(Air2000.Event varEvt)
        {
            EventEX <NetworkReachability> evt = varEvt as EventEX <NetworkReachability>;

            switch (evt.Param)
            {
            case NetworkReachability.NotReachable:
            {
                WindowManager.GetSingleton().OpenConfirmDialog(Localization.Get("NetWorkError"), null, false);
            }
            break;

            default: { } break;
            }
        }
示例#5
0
        private void OnLoginFail(Air2000.Event varEvent)
        {
            Helper.LogWithToast("Login Fail!");

            CancelInvoke("Timeout");

            if (Application.platform == RuntimePlatform.Android)
            {
                UIHelper.SetActiveState(this.transform, "Button_Andriod", true);
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                UIHelper.SetActiveState(this.transform, "Button", true);
            }
            else
            {
                UIHelper.SetActiveState(this.transform, "Login_PC", true);
            }
            UIHelper.SetActiveState(transform, "Loding/Loding", false);
        }
示例#6
0
 private void OnLoginFail(Air2000.Event varEvt)
 {
     UnRegisterEvent();
     GameContext.GetInstance().StopCoroutine(ExecuteLoad());
     //WindowManager.GetSingleton().DestoryWidowByName(MainView.VIEW_KEY);
 }
示例#7
0
 private void MianModeEnd(Air2000.Event varEvent)
 {
     GTimer.CancelAll("LoadMainModeTimeOut");
     mIsMainMode = true;
     TryLogin2MainScene();
 }
示例#8
0
 void OnEventCallback(Air2000.Event evt)
 {
     int c = 1;
 }
示例#9
0
        private void OnPlayerInfo(Air2000.Event varEvt)
        {
            mIsPlayerInfo = true;

            LoginSucceed();
        }
示例#10
0
        private void OnLoginInfo(Air2000.Event varEvt)
        {
            mIsLoginInfo = true;

            LoginSucceed();
        }
示例#11
0
 private void StartConfigCheck(Air2000.Event varEvent)
 {
     StatrLoading(Localization.Get("Login StartConfigCheck"));
 }
示例#12
0
 private void OnStatrVersionCheck(Air2000.Event varEvent)
 {
     StatrLoading(Localization.Get("Login StartVersionCheck"));
 }
示例#13
0
 private void OnStartLogin(Air2000.Event varEvent)
 {
     StatrLoading(Localization.Get("LoginIng"));
 }
示例#14
0
 private void RspTSDKLoginSuccess(Air2000.Event varEvt)
 {
 }