FPSController Editing
The FPSController Variables
The included FPSController is from the Unity Standard Assets, and I have edited the variables in that script to make sure they're accessible in the "GMController" - So they can be easily edited and modified when you enter and exit the gas to slow the player. See below on the variables that should be public or set them in set them in such a way that they're accessible in your controller.
Editing the GMController script
In the "GMController" script you will find a method called "PlayerMovement" you can edit this along with the "walkGas, runGas, walkNorm, runNorm" variables in this script to change the values of the FPSController. Even edit this method if you want to incorporate your own controller.
Last updated