I am trying to build a game where the player is flying a plane around obstacles and I want the plane to tilt when it is turned. I am able to get the plane to rotate on the Z axis when the button is pressed but I am trying to figure out how to get it to stop at a certain point rather than have it rotate until the button is let go. Iv looked all over and I cant seem to find anything about it. I am very new to Unity and C# so any help would be greatly appreciated.