How do I use a different character controller with this system?
In the “DisableManager” script we reference the player controller so we can disable the “FirstPersonController” script.
When we interact with the object we disable character movement and camera rotation. If you’re using a different controller please replace that reference with the way to disable your controllers movement and camera rotation!
My example scene has a variable called "FIrstPersonController player = null" - This is reference the "FirstPersonController" script and we give it the name of "player".
You can change "FirstPersonController" to your controller and how you would like to disable the camera movement and player movement.
[SerializeField]privateImage crosshair =null;
[SerializeField]privateFirstPersonController player =null;
In the snippet below, we can disable the player and camera movement by setting "player.enabled = false" because this will disable the "FirstPersonController" script which controls both the player movement AND camera movement. This is where you would change those two statements accordingly!
If you have any issues at all, do send me an email! :)