Updated elevator, added audio master slider
This commit is contained in:
@@ -2968,7 +2968,7 @@ MonoBehaviour:
|
||||
doorOpenTime: 4
|
||||
doorCloseTime: 5.6
|
||||
floorMoveTime: 6
|
||||
doorStayOpenTime: 2
|
||||
doorStayOpenTime: 7
|
||||
floors:
|
||||
- floorNumber: 1
|
||||
floorPoint: {fileID: 9140433812702186628}
|
||||
|
||||
@@ -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