示例#1
0
 public void OnClickClose()
 {
     UISystem.CloseDialog(Define.DialogType.ContinueDialog, () =>
     {
         UISystem.OpenDialog(Define.DialogType.ResultDialog);
     });
 }
示例#2
0
 public void OnReplayButton()
 {
     UISystem.CloseDialog(Define.DialogType.PauseDialog, () =>
     {
         GameManager.GameReset();
     });
 }
示例#3
0
 private void CallbackSuccess()
 {
     DataManager.GetInstance().AfterShowContinueVideo();
     UISystem.CloseDialog(Define.DialogType.ContinueDialog, () =>
     {
         GameManager.GameContinue(bTimeUp);
     });
 }
示例#4
0
 public void OnCloseOptionDialog()
 {
     if (beforeSoundVolume != SoundManager.GetInstance().soundVolume ||
         beforeBGMVolume != SoundManager.GetInstance().bgmVolume)
     {
         DataManager.GetInstance().SaveAllData();
     }
     UISystem.CloseDialog(Define.DialogType.LobbyOptionDialog);
 }
示例#5
0
    public void OnReplayButton()
    {
        StopAllCoroutines();

        UISystem.CloseDialog(Define.DialogType.ResultDialog, () =>
        {
            GameManager.GameReset();
        });
    }
示例#6
0
    private void AdoptPet()
    {
        if (petData != null)
        {
            if (DataManager.GetInstance().TryAdoptAnimal(petData))
            {
                UISystem.CloseDialog(Define.DialogType.InvenDialog);

                UISystem.UpdateNews();
            }
        }
    }
示例#7
0
    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");
            });
        }
    }
示例#8
0
 public void OnCloseButton()
 {
     UISystem.CloseDialog(Define.DialogType.ShopDialog);
 }
示例#9
0
 public void CloseRewardDialog()
 {
     UISystem.CloseDialog(Define.DialogType.RewardDialog);
 }
示例#10
0
 public void OnCloseGameReadyDialog()
 {
     UISystem.CloseDialog(Define.DialogType.GameReadyDialog);
 }
示例#11
0
 public void ClosePauseDialog()
 {
     UISystem.CloseDialog(Define.DialogType.PauseDialog);
 }
示例#12
0
 public void CloseInvenDialog()
 {
     UISystem.CloseDialog(Define.DialogType.InvenDialog);
 }