It is assumed that when I press space the diver must go up and integrate an "else" to go down if it is not pressing and works correctly but when the diver touches the roof of the layout it is locked for 2 seconds and returns to To go down.
The diver has the behavior of "bound to layout"
I need help please !!!