コード例 #1
0
    IEnumerator DelayRespawn()
    {
        gameManager.SetEnableInput(false);
        crossFader.FadeOut();
        yield return(new WaitForSeconds(2f));

        if (data.GetDeadStatement())
        {
            soulOrb.HideSoulOrb();
            soulOrb.HideHealthItems();
            character.transform.position = respawnPos.position;
            data.SetRespawnData(5);
            crossFader.FadeIn();
            character.PlayRespawnAnimation();
        }
        yield return(new WaitForSeconds(3f));

        soulOrb.ShowSoulOrb();
        Physics2D.IgnoreLayerCollision(LayerMask.NameToLayer("Hero Detector"), LayerMask.NameToLayer("Enemy Detector"), false);
    }
コード例 #2
0
 private void IntroPlayer_loopPointReached(VideoPlayer source)
 {
     UpdateAnyKeyTipCounter();
     ResetAnyKeyTip();
     crossFader.FadeIn();
     if (SceneManager.GetActiveScene().buildIndex == 2)
     {
         SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex + 1);
     }
     else
     {
         SceneManager.LoadSceneAsync(1);
     }
 }
コード例 #3
0
 private void Start()
 {
     crossFader.FadeIn();
 }