add scene transition
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user