コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (dialogManager.getIsEnd() && !isActive)
        {
            isActive = true;

            dialog.SetActive(false);
            //endScreen.SetActive(true);
            StartCoroutine(FadeInEndScreen(fadeImage, fadeInEndScreen, fadeInTime));
        }
    }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     if (dialogManager.getIsEnd() && !isActive)
     {
         if (fadeInOnTrail)
         {
             if (!EndSong.isPlaying && !EndTail.isPlaying)
             {
                 dialogManager.setNextID();
                 endImage.enabled = true;
                 StartCoroutine(FadeInBg(endImage, fadeInImageBegin, fadeInTime));
                 isActive = true;
             }
         }
         else if (!fadeInOnTrail)
         {
             dialogManager.setNextID();
             endImage.enabled = true;
             StartCoroutine(FadeInBg(endImage, fadeInImageBegin, fadeInTime));
             isActive = true;
         }
     }
 }