Hi,
I have been brain storming all day on how to access the FirstPersonController script from the unity fps controller. Due to me being a such a noob can anyone tell me how to access it from a javascript and if possible disable it. I searched google for hours and didnt find any answers.
I would like to define a variable of it like so:
private var fpsController : FirstPersonController; //fpscontroller script!
I would like to to create an if statement like this:
if (Input.GetKeyDown(KeyCode.Tab))
{
_fpsController.enabled = false; //disables the fps controller script
camera.SetActive (false); // disables the camera
thanks for everyone willing to take there time to answer!