//opens the door and teleports the elevator to the player void OnTriggerEnter() { elevatorScript.CallTheElevator(playerFloor); leftDestination = leftDoorOpen; rightDestination = rightDoorOpen; }
//opens the door and teleports the elevator to the player void OnTriggerEnter() { elevatorScript.CallTheElevator(playerFloor); leftDestination = leftDoorOpen; rightDestination = rightDoorOpen; }