I am working on stamina and sprinting features with the unity standard assets first person controller. I have been following some tutorials on how to access gamecomponents and so on but I cannot understand why my script does not find the FirstPersonController class at all?
I have also tried to use character motor script (all tutorials use this), but it seems it cease to exist at all in the standard assets.
This is what I have done in another script that is in the same game object as the FPSController when i tried to access it.
public FirstPersonController controller;
void Start () {
controller = GetComponent<FirstPersonController>();
}
I am still very fresh in programming and even the directions towards the solution would be much appreciated! Thanks!