Unlike these hardasses ill at least give you suggestions where to start....
look up OnCollisionEnter()
You can apply that to the box which basically means that you can detect when you're on top of it. When that happens you can use an "animation" to make the box move down.
look up OnCollisionExit()
You can use that to detect when you leave the box and then the box will play another "animation" where it moves to the original position.
Simple animations such as the one youre trying to create can be made in engine using the animation window, so look that up and how its used.
You may want to look up tags, cause they make it easier for the box to know what stepped on it, if for example you only want the "player" to activate it.
↧