Elevators in Unity

Player summons elevator and goes up and back down, noting the light on the panel changes color.
Hierarchy showing Lift and Elevator_Panel structure.
Elevator Panel components
Call_Button components.
Variable assignment in ElevatorPanel script.
OnTriggerEnter method on ElevatorPanel script.
CoinCount method on Player script.
OnTriggerExit method on ElevatorPanel script.
Elevator components
Variable assignment on the Elevator script.
CallElevator method in Elevator script.
FixedUpdate method in Elevator script.
OnTriggerEnter and OnTriggerExit script on Elevator script.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store