add scene transition

This commit is contained in:
2026-03-05 20:26:22 -06:00
parent 8a6338842a
commit 90430ef9c3
11 changed files with 6394 additions and 8 deletions
-3
View File
@@ -41,7 +41,6 @@ IEnumerator EnterRoomCoroutine(RoomDoor door)
if (door.requiresInteraction)
yield return new WaitForSeconds(0.2f);
blackScreenObject.gameObject.SetActive(true);
while (fadeTime < fadeDuration)
{
blackScreenColor.a = Mathf.Lerp(0, 1, fadeTime / fadeDuration);
@@ -63,8 +62,6 @@ IEnumerator EnterRoomCoroutine(RoomDoor door)
}
fadeTime = 0;
blackScreenObject.gameObject.SetActive(false);
// Play exit animation for linked door (if it exists)
door.linkedDoor.CloseDoor();
yield return new WaitForSeconds(0.2f);