Updated elevator, added audio master slider
This commit is contained in:
@@ -358,6 +358,7 @@ public class ElevatorBox : NetworkBehaviour
|
||||
|
||||
SetState(ElevatorState.OpenDoorsStationary);
|
||||
yield return new WaitForSeconds(doorStayOpenTime); // wait for passengers
|
||||
StartCoroutine(CloseDoors());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user