예제 #1
0
        public void OnConfirmButtonClick()
        {
            queryContainer.gameObject.SetActive(false);

            QuitPauseHUD();

            ExploreManager exploreManager = TransformManager.FindTransform("ExploreManager").GetComponent <ExploreManager> ();

            switch (queryType)
            {
            case QueryType.Refresh:
                exploreManager.RefrestCurrentLevel();
                break;

            case QueryType.BackHome:
                exploreManager.QuitExploreScene(false);
                break;
            }
        }
        public void OnConfirmButtonClick()
        {
//			int wordTypeIndex = settingView.GetCurrentWordType (index);
//
//			if (wordTypeIndex == -1) {
//				return;
//			}

            settingView.QuitAlertHUD();

            GameManager.Instance.persistDataManager.ResetPlayerDataToOriginal();

            switch (currentSelectWordTypeIndex)
            {
            case 0:
                GameManager.Instance.gameDataCenter.gameSettings.wordType = WordType.CET4;
                break;

            case 1:
                GameManager.Instance.gameDataCenter.gameSettings.wordType = WordType.CET6;
                break;

            case 2:
                GameManager.Instance.gameDataCenter.gameSettings.wordType = WordType.Daily;
                break;

            case 3:
                GameManager.Instance.gameDataCenter.gameSettings.wordType = WordType.Bussiness;
                break;
            }

            ExploreManager exploreManager = TransformManager.FindTransform("ExploreManager").GetComponent <ExploreManager> ();

            if (exploreManager != null)
            {
                exploreManager.QuitExploreScene(false);
            }

            settingChanged = true;
            OnQuitSettingViewButtonClick();
        }