- Home /
Referencing a Cs Script from a JS within the Compile Order
Hello everybody I got a new problem for you guys today. I know what you're going to say
"the C# need to be in the Standard Assets folder and the JS in a random SubFolder of "Assets"
The problem right now is that THAT'S the case, the Scripts have been moved to respect the Compile Order but they still don't work, what am I doing wrong?
#pragma strict
var Character : GameObject;
var Menu_Status : boolean;
var Character_Status : boolean;
var Camera_Status : boolean;
var Mouse_Status : boolean;
function Start ()
{
Character = GameObject.Find("Character 1");
Menu_Status = false;
Character_Status = true;
Camera_Status = true;
}
function Update ()
{
if(Input.GetKeyDown(KeyCode.Escape))
{
Menu_Status = !Menu_Status;
Character_Status = !Character_Status;
Camera_Status = !Camera_Status;
}
if(Character_Status == false)
{
Character.GetComponent(ThirdPersonCharacter).enabled = false;
}
}
Here's the code, it's simple as you can see but it won't let me go on, still stuck on BCE0005 "unknown identifier"
Character1 has ThirdPersonCharacter and ThirdPersonUserControl on it, neither work
Your answer
Follow this Question
Related Questions
How to make an enemy ragdoll on death? 1 Answer
Can I make Money collecting script without attaching it to a object ? I tried but I got error 2 Answers
Point Counter Works Only Once! 1 Answer
Issues with camera lookrotation - please help 1 Answer
How can i check and fire an event when the user look at specific object ? 0 Answers