Refer Script "MouseLook" in Java Script

Hi guys how you doing ? so I’m beginner in Js Unity and I wrote this :

var soundhover : AudioClip;

var beep : AudioClip;

var Copy : MeshRenderer;

var MyControl : MouseLook;

var OtherControl : ;
var OtherCamera : Camera;

Copy.enabled = false;

function OnMouseEnter(){
audio.PlayOneShot(soundhover);

Copy.enabled = true;

}
function OnMouseExit(){
Copy.enabled = false;
}

function OnMouseUp(){

Copy.enabled = true;

MyControl.enabled = false;

OtherControl.enabled = true;

OtherCamera.enabled = true;

Copy.enabled = false;

audio.PlayOneShot(beep);

yield new WaitForSeconds(0.35);

@script RequireComponent(AudioSource)


But unity gives me this error:

Assets/Scripts/Menu/Bt Options.js(6,20): BCE0018: The name ‘MouseLook’ does not denote a valid type (‘not found’).

So, How can I say “var MyControl : MouseLook;” Properly thank you already.

Sorry my bad English D=

OK:

my guess is that MouseLook is a c# script correct?

in which case, you must convert it to js, OR this will only cause more issues…

it is possible for js and cs scripts to see the other, but it only goes one way, either .js sees .cs or vice versa, but not both ways… but if that’s not an issue, you could make sure the .cs compiles first by putting it in a folder that compiles sooner, such as Plugins.

just create a folder called Plugins in the base project folder, and put it in there… but beware! This will mean the MouseLook script will not be able to see any of your other scripts!