chchchchchaaaaangeeesssss

This commit is contained in:
WillJeynes
2026-08-30 09:39:21 +01:00
parent d36c0863a6
commit f673f53e60
23 changed files with 642 additions and 84 deletions
+4 -2
View File
@@ -206,15 +206,17 @@ public class CameraController : MonoBehaviour
float pushSpeed = 5f;
float previousPosition = -1f;
float counter = 0f;
bool done = false;
while (activeDoor != null && activeDolly != null && activeDolly.CameraPosition > previousPosition)
{
previousPosition = activeDolly.CameraPosition;
activeDolly.CameraPosition += pushSpeed * Time.deltaTime;
counter += Time.deltaTime;
if (counter > 4f && isDeathDoor)
if (counter > 4f && isDeathDoor && !done)
{
globalLight.SetActive(true);
AudioManager.Instance.PlaySound("WordAdd");
done = true;
}
yield return null;
}