Opening and closing a Gate on Input.GetButtonDown
I have a school project to due where the objective is that you need to make a C# (only) script to do the following. Open and Close a door with an action such as Input.GetButtonDown (the door must not rotate but slide up and down) the Door must open until it reaches a value y = 7.5 and the door must stop when it reaches a value of y = 0.5 The Input key must be able to stop the door midway and change its directions on reinputting the input key
The most I have gotten is making the door go up and stop with input but not switch direction
This is a statement, not a question. It seems like it belongs on the forums.
If you rephrase as specific questions, we can answer them. Or if you just post on the forums, we as a community might be able to help you by doing things like critiquing your code or giving you a hint as to what the next step might be.