public void OnClose() { SoundHelper.FadeOutPlaySound(); DDZUIFactory.fieldScene.Remove(); Game.EventSystem.Run(EventIdType.SubGameReBackLobby); }
private async void Close() { SoundComponent.Instance.PlayClip(DataCenterComponent.Instance.soundInfo.click); this._TEC.PlayBackwards(TweenAnimationIdType.MyRecordPanel); SoundHelper.FadeOutPlaySound(); await Task.Delay(300); this.panelGo.SetActive(false); }
/// <summary> /// 返回游戏列表 /// </summary> public void OnBackGameListsButton() { ETModel.Game.Scene.GetComponent <SoundComponent>().PlayClip(DataCenterComponent.Instance.soundInfo.click); SoundHelper.FadeOutPlaySound(); Game.EventSystem.Run(EventIdType.ClickBackGameList); GameHelper.CurrentGameInfo = null; lobby.GameLobbyGameListPlugin._GameType.SetActive(true); this._GameTypeBg.SetActive(false); this.MaskBg.SetActive(false); this._BackGameListsButton.SetActive(false); }
/// <summary> /// 进入斗地主 /// </summary> private async void OnDDZ_LevelButton() { try { Game.PopupComponent.ShowLoadingLockUI(DataCenterComponent.Instance.tipInfo.EnterSubGameTip); var response = (G2C_JionRoom_Res)await SessionComponent.Instance.Session.Call( new C2G_JionRoom_Req() { AreaId = GameHelper.AreaList[DDZGameHelper.CurrentGameInfo.GameId][0].AreaId, GameId = DDZGameHelper.CurrentGameInfo.GameId, UserId = GamePrefs.GetUserId(), }); Game.PopupComponent.CloseLoadingLockUI(); if (response.Error != 0) { Game.PopupComponent.ShowMessageBox(response.Message); return; } DDZGameHelper.RoomId = response.RoomId; GameLobbyFactory.Remove(); DDZUIFactory.fieldScene.Remove(); SoundHelper.FadeOutPlaySound(); DDZUIFactory.gameScene.Create(); } catch (Exception e) { Game.PopupComponent.ShowMessageBox(e.Message); throw; } }