Unknown Identifier: 'CrossPlatformInputManager'

Hello. I have this error stated in the question, and I am wondering why I am recieving this.

I’m trying to add the joystick controller from the standard assets, but when I try to reference to the .getAxis(“Horizontal”) I get this error. I’ve learned that usually this means that my script can not access the CrossPlatformInputManager, but I’m also aware that I do not need to import that class because it is under Unity’s Assets folder.

Here is my code: Classname = followCenter.js

function Update()
		var axis = CrossPlatformInputManager.GetAxis("Horizontal");

The only thing I can think off is that this script (which contains the Update function) is in JS and CrossPlatformInputManager is in C#.

Thanks for helping me out!

you have to import a module called UnityStandardAssets.CrossPlatformInput