Ejemplo n.º 1
0
    IEnumerator CameraTargettingType()
    {
        switch (dialogues[lineCount].cameraType)
        {
        case CameraType.FadeIn: SettingUI(false); SplashManager.isfinished = false;  StartCoroutine(theSplashManager.FadeIn(false, true)); yield return(new WaitUntil(() => SplashManager.isfinished)); break;

        case CameraType.FadeOut: SettingUI(false); SplashManager.isfinished = false; StartCoroutine(theSplashManager.FadeOut(false, true)); yield return(new WaitUntil(() => SplashManager.isfinished)); break;

        case CameraType.FlashIn: SettingUI(false); SplashManager.isfinished = false; StartCoroutine(theSplashManager.FadeIn(true, true)); yield return(new WaitUntil(() => SplashManager.isfinished)); break;

        case CameraType.FlashOut: SettingUI(false); SplashManager.isfinished = false; StartCoroutine(theSplashManager.FadeOut(true, true)); yield return(new WaitUntil(() => SplashManager.isfinished)); break;

        case CameraType.ObjectFront: theCam.CameraTargetting(dialogues[lineCount].tf_Target); break;

        case CameraType.Reset: theCam.CameraTargetting(null, 0.05f, true, false); break;

        case CameraType.ShowCutScene:
            SettingUI(false); CutSceneManager.isFinished = false;
            StartCoroutine(theCutSceneManager.CutSceneCoroutine(dialogues[lineCount].spriteName[contextCount].Trim(), true));
            yield return(new WaitUntil(() => CutSceneManager.isFinished));

            break;

        case CameraType.HideCutScene:
            SettingUI(false); CutSceneManager.isFinished = false;
            StartCoroutine(theCutSceneManager.CutSceneCoroutine(null, false));
            yield return(new WaitUntil(() => CutSceneManager.isFinished));

            theCam.CameraTargetting(dialogues[lineCount].tf_Target);
            break;
        }
        StartCoroutine(TypeWriter());
    }
Ejemplo n.º 2
0
    IEnumerator CameraTargetType()
    {
        if (dialogues[lineCount].tf_target != null)
        {
            DisappearObjects(false);
        }
        else if (dialogues[lineCount].cameraType == CameraType.Reset)
        {
            DisappearObjects(true);
            StartCoroutine(theSprite.HalfSpriteDisappearCoroutine());
        }


        switch (dialogues[lineCount].cameraType)
        {
        case CameraType.ObjectFront: theCam.CameraTargetting(dialogues[lineCount].tf_target); new WaitUntil(() => CameraController.isFinish); break;

        case CameraType.Reset: theCam.CameraTargetting(null, 0.05f, true, false); break;

        case CameraType.FadeIn: SettingUI(false); SplashManager.isfinish = false; StartCoroutine(theSplash.FadeIn(false, true)); yield return(new WaitUntil(() => SplashManager.isfinish)); break;

        case CameraType.FadeOut: SettingUI(false); SplashManager.isfinish = false; StartCoroutine(theSplash.FadeOut(false, true, true)); yield return(new WaitUntil(() => SplashManager.isfinish)); break;

        case CameraType.FlashIn: SettingUI(false); SplashManager.isfinish = false; StartCoroutine(theSplash.FadeIn(true, true)); yield return(new WaitUntil(() => SplashManager.isfinish)); break;

        case CameraType.FlashOut: SettingUI(false); SplashManager.isfinish = false; StartCoroutine(theSplash.FadeOut(true, true, false)); yield return(new WaitUntil(() => SplashManager.isfinish)); break;

        case CameraType.ShowCutScene: SettingUI(false); CutSceneManager.isFinished = false; StartCoroutine(theCutScene.CutSceneCoroutine(dialogues[lineCount].spriteName[contextCount], true)); yield return(new WaitUntil(() => CutSceneManager.isFinished)); break;

        case CameraType.HideCutScene: SettingUI(false); CutSceneManager.isFinished = false; StartCoroutine(theCutScene.CutSceneCoroutine(null, false)); yield return(new WaitUntil(() => CutSceneManager.isFinished)); theCam.CameraTargetting(dialogues[lineCount].tf_target); break;

        case CameraType.AppearSlideCG: SlideManager.isFinished = false; StartCoroutine(theSlide.AppearSlide(SplitSlideCGName())); yield return(new WaitUntil(() => SlideManager.isFinished)); theCam.CameraTargetting(dialogues[lineCount].tf_target); break;

        case CameraType.DisappearSlideCG: SlideManager.isFinished = false; StartCoroutine(theSlide.DisAppearSlide()); yield return(new WaitUntil(() => SlideManager.isFinished)); theCam.CameraTargetting(dialogues[lineCount].tf_target); break;

        case CameraType.ChangeSlideCG: SlideManager.isChanged = false; StartCoroutine(theSlide.ChangeSlide(SplitSlideCGName())); yield return(new WaitUntil(() => SlideManager.isChanged)); theCam.CameraTargetting(dialogues[lineCount].tf_target); break;
        }

        StartCoroutine(TypeWriter());
    }