コード例 #1
0
    public override IEnumerator Execute()
    {
        yield return(EventFlashScreen.c(.15f).Execute());

        yield return(EventFlashScreen.c(.15f).Execute());

        oldMusic  = Global.s.ActiveBGM;
        oldVolume = Global.s.ActiveBGMVolume;
        AudioController.instance.PlayBGM((int)BGM.NONE, .4f);
        yield return(EventBlinds.c.Execute());

        BattleController.instance.InitBattle(battle);
        yield return(EventWait.c(1f).Execute());

        yield return(EventFade.c(-1f, Color.black).NoYield.Execute());

        CameraBlinds.instance.HideBlinds();
        yield return(EventTextboxClose.c.Execute());

        yield return(EventWait.c(1f).Execute());

        BattleController.instance.StartBattle();
        yield return(new WaitUntil(() => BattleController.instance.curBattle == Battles.None));

        yield return(EventFade.c(1f).Execute());

        BattleController.instance.FinishedBattle();
        AudioController.instance.PlayBGM(oldMusic, oldVolume);
        yield return(EventFade.c(-1f).Execute());
    }
コード例 #2
0
    public override IEnumerator Execute()
    {
        //yield return EventFade.c(3f).Execute();
        Credits.StartPlaying();
        yield return(EventFade.c(-.4f).Execute());

        yield return(new WaitUntil(() => Credits.Finished));

        yield return(EventWait.c(1f).Execute());

        Global.ResetLevel();
    }
コード例 #3
0
    IEnumerator GameOverPlay()
    {
        yield return(EventWait.c(1f).Execute());

        yield return(EventFade.c(1f).Execute());

        KeepCameraInBounds.instance.objectToFollow = instance.gameOverScreenObject;
        yield return(EventBGM.c(BGM.GameOver, .4f).Execute());

        yield return(EventFade.c(-.4f).Execute());

        yield return(new WaitUntil(() => InputController.JustPressed(Action.Any)));

        yield return(EventFade.c(2f).Execute());

        yield return(EventBGM.c(BGM.NONE).Execute());

        yield return(EventWait.c(.2f).Execute());

        //KeepCameraInBounds.instance.objectToFollow = WorldspaceUI.instance.MainMenu_Selected.transform.parent.gameObject;

        Global.ResetLevel();
    }