Unity 3D - Error BCE0019 , " 'paused' is not a member of PauseScript"
Posted
by
user3666251
on Game Development
See other posts from Game Development
or by user3666251
Published on 2014-06-07T08:45:39Z
Indexed on
2014/06/07
9:38 UTC
Read the original article
Hit count: 276
I am trying to make a game for Android in Unity. Came to the part where I have to make a pause menu option. Made a GUITexture
and placed it on the top right side of the screen then I attached this script to it :
#pragma strict
function OnMouseDown(){
this.paused = !this.paused;
}
function OnGUI(){
if(this.paused){
if (GUI.Button(Rect(10,10,100,50),"Restart")){
Application.LoadLevel(Application.loadedLevel);
}
// Insert the rest of the pause menu logic
}
}
It gives me this error :
"Assets/Scripts/PauseScript.js(4,10): BCE0019: 'paused' is not a member of 'PauseScript'. "
"PauseScript
" is the name of my pause script.
Thank you.
© Game Development or respective owner