public void AudioToBind() { Log.I("AudioToBind"); UIMgr.CloseAllPanel(); UIMgr.OpenPanel <BindConfirmBootPanel>(new BindConfirmBootPanelData() { isFromAudio = true }); }
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; }
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>(); }
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); }
/** * 退出登录 */ public static void logout() { clearLocal(); UIMgr.CloseAllPanel(); UIMgr.OpenPanel <LoginPanel>(new LoginPanelData()); }