save position and cam rotation

This commit is contained in:
2026-04-15 21:33:36 -05:00
parent 46ec37309d
commit db47bc3768
12 changed files with 83 additions and 78 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ IEnumerator EnterRoomCoroutine(RoomDoor door)
while (fadeTime < fadeDuration)
{
blackScreenColor.a = Mathf.Lerp(0, 1, fadeTime / fadeDuration);
GameManager.Instance.GetBlackScreen().color = blackScreenColor;
GameManager.Instance.BlackScreen.color = blackScreenColor;
fadeTime += Time.deltaTime;
yield return null;
}
@@ -53,7 +53,7 @@ IEnumerator EnterRoomCoroutine(RoomDoor door)
while (fadeTime < fadeDuration)
{
blackScreenColor.a = Mathf.Lerp(1, 0, fadeTime / fadeDuration);
GameManager.Instance.GetBlackScreen().color = blackScreenColor;
GameManager.Instance.BlackScreen.color = blackScreenColor;
playerController.WalkInDirection((door.linkedDoor.WalkDirection.position - playerController.transform.position).normalized);
fadeTime += Time.deltaTime;