How do I change gravity of a player from a press of a button?
Hello, I'm rather new to Unity and I'm trying to make a small 3D platformer. Using the ThirdPersonController prefab from Standard Assets, I want to make the game so that I can change the player's gravity by the press of keys (1 being default, 2 being 1x more than default, 3 being 1x less, etc.) but I'm not very good with custom components or coding in general. I tried looking at other posts, but I couldn't get them to work very well. I know the basics of C, but not too much. If anyone could guide or help me, I'd be thankful.
Your answer
Follow this Question
Related Questions
Button problem : changing scenes fail ? 0 Answers
Explosion on contact 0 Answers
Can't get raycast to mousePosition 0 Answers
Cinemachine (or the unity compiler) broken due to some unknown reason 1 Answer
How do I make a script for camera recoil recovery? 0 Answers