// 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)); } }
// 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; } } }