I’m trying to disable MouseLook on a First Person Controller when the player clicks on an item. So that the item is centered on the screen and then enlarged.
So I attached a script to the First Person Controller and wrote this:
this.GetComponent.().enabled = false;
This however only affects the X axis. The player can still look up and down for some reason.
Can somebody point me in the right direction?
Thanks