chchchchchaaaaangeeesssss
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user