public void OnClickClose() { UISystem.CloseDialog(Define.DialogType.ContinueDialog, () => { UISystem.OpenDialog(Define.DialogType.ResultDialog); }); }
public void OnReplayButton() { UISystem.CloseDialog(Define.DialogType.PauseDialog, () => { GameManager.GameReset(); }); }
private void CallbackSuccess() { DataManager.GetInstance().AfterShowContinueVideo(); UISystem.CloseDialog(Define.DialogType.ContinueDialog, () => { GameManager.GameContinue(bTimeUp); }); }
public void OnCloseOptionDialog() { if (beforeSoundVolume != SoundManager.GetInstance().soundVolume || beforeBGMVolume != SoundManager.GetInstance().bgmVolume) { DataManager.GetInstance().SaveAllData(); } UISystem.CloseDialog(Define.DialogType.LobbyOptionDialog); }
public void OnReplayButton() { StopAllCoroutines(); UISystem.CloseDialog(Define.DialogType.ResultDialog, () => { GameManager.GameReset(); }); }
private void AdoptPet() { if (petData != null) { if (DataManager.GetInstance().TryAdoptAnimal(petData)) { UISystem.CloseDialog(Define.DialogType.InvenDialog); UISystem.UpdateNews(); } } }
public void OnPlayButton() { SoundManager.GetInstance().PlaySound(Define.SoundType.Click); int selectedPetCount = DataManager.GetInstance().GetTotalSelectedPetsCount(); if (selectedPetCount <= 0) { PopupSystem.GetPopup <BasicPopup>(Define.PopupType.Basic).SetData(DataManager.GetText(TextTable.cantPlayGameKey)); PopupSystem.OpenPopup(Define.PopupType.Basic); } else { UISystem.CloseDialog(Define.DialogType.GameReadyDialog, () => { TipController.ShowRandomTip(); ScenesManager.ChangeScene("GameScene"); }); } }
public void OnCloseButton() { UISystem.CloseDialog(Define.DialogType.ShopDialog); }
public void CloseRewardDialog() { UISystem.CloseDialog(Define.DialogType.RewardDialog); }
public void OnCloseGameReadyDialog() { UISystem.CloseDialog(Define.DialogType.GameReadyDialog); }
public void ClosePauseDialog() { UISystem.CloseDialog(Define.DialogType.PauseDialog); }
public void CloseInvenDialog() { UISystem.CloseDialog(Define.DialogType.InvenDialog); }