Updated elevator, added audio master slider

This commit is contained in:
2025-12-02 18:12:02 +02:00
parent dab5bfc677
commit 0b4854373b
4 changed files with 386 additions and 20 deletions

View File

@@ -358,6 +358,7 @@ public class ElevatorBox : NetworkBehaviour
SetState(ElevatorState.OpenDoorsStationary);
yield return new WaitForSeconds(doorStayOpenTime); // wait for passengers
StartCoroutine(CloseDoors());
}
}

View File

@@ -122,7 +122,11 @@ public class ElevatorSpringyButton : MonoBehaviour {
}
//Debug.Log("Button is pressed");
if (ElevatorOuter != null && !isInsideButton) ElevatorOuter.CallElevator();
if (disabled) StartCoroutine(DeactivateAfterDelay(0.5f));
if (disabled)
{
StartCoroutine(DeactivateAfterDelay(0.5f));
return;
}
if (box != null && isInsideButton)
{
if (isFloorButton)