Esempio n. 1
0
    IEnumerator restart()
    {
        yield return(new WaitForSeconds(3f));

        fader.FadeOut();
        SceneManager.LoadScene("Map");
    }
Esempio n. 2
0
        public void SceneTrans()
        {
            Progress progress = Progress.Instance;

            if (progress.MyStoryProgress == 0)
            {
                new StorySelectScene.ToStories().ToStory(Progress.StoryProgress.Prologue);
                //progress.ThisStoryProgress = Progress.StoryProgress.Prologue;
                //progress.ThisQuestProgress = Progress.QuestProgress.Prologue;
                //sceneFader.FadeOut(SceneFader.SceneTitle.Story);
                return;
            }
            sceneFader.FadeOut(SceneFader.SceneTitle.Home);
        }
Esempio n. 3
0
 public void RetryButton()
 {
     //Debug.Log("Retry");
     //SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     sceneFader.FadeOut(SceneManager.GetActiveScene().name);
 }
Esempio n. 4
0
    public void OnFadeButton()
    {
        SceneFader sceneFader = SceneFader.Instance;

        sceneFader.FadeOut(SceneFader.SceneTitle.Home);
    }
Esempio n. 5
0
 public void BackButtonClick()
 {
     sceneFader.FadeOut("Game");
 }
Esempio n. 6
0
 public void StartSceneChange(string sceneName)
 {
     targetScene   = sceneName;
     changingScene = true;
     sceneFader.FadeOut();
 }
        void Initialize()
        {
            ///チュートリアル終了か同課の確認
            Progress progress = Progress.Instance;

            if (!progress.TutorialCheck(Progress.TutorialFlag.Home))
            {
                tutorial.Popup();
                TutorialClose();
                progress.SetTutorialProgress(Progress.TutorialFlag.Home, true);
            }

            //Debug.Log("Start");

            //touchGestureDetector = GetComponent<TouchGestureDetector>();
            touchGestureDetector.onGestureDetected.AddListener((gesture, touchInfo) =>
            {
                if (gesture == TouchGestureDetector.Gesture.TouchBegin)
                {
                    touchedWindow = Window.Last;
                    touchInfo.HitDetection(out hit);
                    for (int i = (int)Window.Growth; i < (int)Window.Last; i++)
                    {
                        if (touchInfo.HitDetection(out hit, buttonObjects[i]))
                        {
                            //重なってるときどうなるかわからない
                            touchedWindow = (Window)i;
                            break;
                        }
                    }
                }
                if (gesture == TouchGestureDetector.Gesture.Click)
                {
                    //for (int i = (int)Window.Growth; i < (int)Window.Last; i++)
                    //{
                    if (touchedWindow != Window.Last &&
                        touchInfo.HitDetection(out hit, buttonObjects[(int)touchedWindow]))
                    {
                        //if (beginObject == endObject)
                        //{
                        if (parents[(int)touchedWindow] != null)
                        {
                            parents[(int)touchedWindow].SetActive(true);
                        }
                        switch (touchedWindow)
                        {
                        case Window.Story:
                            sceneFader.FadeOut(SceneFader.SceneTitle.StorySelect);
                            break;

                        case Window.Summon:
                            if (false)    //一部クリアフラグ
                            {
                                sceneFader.FadeOut(SceneFader.SceneTitle.Home);
                            }
                            break;

                        case Window.Config:
                        case Window.Gallery:
                        case Window.Growth:
                            WindowOpen((int)touchedWindow);
                            break;

                        case Window.Magia:
                            soundM.PlayWithFade(SoundManager.SoundTag.Voice, GetRandomVoice(Progress.Instance.IsClear));
                            break;

                        default:
                            Debug.Log("Error");
                            break;
                        }

                        //}
                    }
                    //}
                }
            });
        }
Esempio n. 8
0
 public void OnClick()
 {
     m_sceneFader.FadeOut(SceneFader.SceneTitle.Home);
 }
Esempio n. 9
0
 void Start()
 {
     fader.FadeOut();
 }
Esempio n. 10
0
 public void RetryButtonClick()
 {
     SwitchUI();
     sceneFader.FadeOut(SceneManager.GetActiveScene().name);
 }