示例#1
0
    void Update()
    {
        if (video.clip != null && video.isPaused)
        {
            Time.timeScale = 1;
            FadeAni.SetBool("FadeOn", false);
            video.clip       = null;
            rawImage.enabled = false;
            Fade.SetActive(false);
            Fade.SetActive(true);
            Bgm.source.clip = Bgm.bgms[0].Clip;
            Bgm.bgmName     = Bgm.bgms[0].Name;
            Bgm.source.Play();
            player.PlayOn = true;
            PlayGame      = true;

            if (boss != null)
            {
                boss.Complete();
            }
        }


        if (Bgm.BgmFadeOn && Bgm.SceneChange)
        {
            if (Bgm.source.volume > 0)
            {
                Bgm.FadeOn();
                FadeAni.SetBool("End", true);
            }
            else
            {
                if (SceneManager.GetActiveScene().name == "BossStage")
                {
                    Scene.DelayMainTitle(1.5f);
                }
                else
                {
                    Scene.BossStageDelay(1.5f);
                }

                Bgm.BgmFadeOn = false;
            }
        }
    }