void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag(triggererTag))
     {
         FadedSceneLoader.LoadScene(scene, fadeColor, fadeOutTime, fadeInTime, fadeIn, waitForOkGo);
     }
 }
Exemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag(triggererTag))
     {
         FadedSceneLoader.SetOkGo();
     }
 }
    IEnumerator QueueSceneLoad()
    {
        yield return(new WaitForSeconds(delay));

        FadedSceneLoader.LoadScene(scene, fadeColor, fadeOutTime, fadeInTime, true, true);
        float time = (float)vP.length - delay;

        if (!waitForVideoToFinish)
        {
            time -= fadeOutTime;
        }
        while (time > 0 || vP.isPlaying)
        {
            time -= Time.deltaTime;
            yield return(null);

            if (!vP.isPlaying)
            {
                break;
            }
        }
        FadedSceneLoader.SetOkGo();
    }