예제 #1
0
 public void AudioToBind()
 {
     Log.I("AudioToBind");
     UIMgr.CloseAllPanel();
     UIMgr.OpenPanel <BindConfirmBootPanel>(new BindConfirmBootPanelData()
     {
         isFromAudio = true
     });
 }
예제 #2
0
        public void InitMainScene(int level)
        {
            Character      = Instantiate(mResCharacter);
            MainCamera     = mResCamera.Instantiate().GetComponent <MainCamera>();
            Maproot        = Instantiate(mResMapRoot);
            CharacterModel = Character.GetComponent <CharacterModel>();

            LevelManager.Instance.ShowMainGame(level);
            HitBoxManager.Instance.ShowMainGame();
            BgManager.Instance.ShowMainGame();

            UIMgr.CloseAllPanel();
            UIMgr.OpenPanel <MainPanel>();
            Time.timeScale = 1;
        }
예제 #3
0
        public void HideMainScene()
        {
            Time.timeScale = 0;
            LevelManager.Instance.LeavelMainGame();
            HitBoxManager.Instance.LeaveMainGame();
            BgManager.Instance.LeaveMainGame();
            EnemyManager.Instance.LeaveMainGame();
            AudioManager.Instance.StopBGM();

            Character.DestroySelf();
            MainCamera.gameObject.DestroySelf();
            Maproot.DestroySelf();
            CharacterModel = null;
            UIMgr.CloseAllPanel();
            UIMgr.OpenPanel <Panel_Start>();
        }
예제 #4
0
        void StartResquestForUnbind()
        {
            Dictionary <string, object> paramDict = new Dictionary <string, object>();

            paramDict.Add("deviceId", PlayerPrefsUtil.GetDeviceId());
            paramDict.Add("userId", PlayerPrefsUtil.GetUserId());
            HttpUtil.PostWithSign <object>(UrlConst.Unbind, paramDict)
            .Subscribe(response =>
            {
                Log.I("解绑成功");
                CommonUtil.toast("解除绑定成功");
                CommonUtil.logout();
                UIMgr.CloseAllPanel();
                UIMgr.OpenPanel <LoginPanel>(new LoginPanelData(), UITransitionType.CIRCLE);
            }
                       , e =>
            {
                if (e is HttpException)
                {
                    HttpException http = e as HttpException;
                    Log.E("弹吐司" + http.Message);
                }
            }).AddTo(this);
        }
예제 #5
0
 /**
  * 退出登录
  */
 public static void logout()
 {
     clearLocal();
     UIMgr.CloseAllPanel();
     UIMgr.OpenPanel <LoginPanel>(new LoginPanelData());
 }