private var enter : boolean;
var myAudioClip: AudioClip[];
var mySkin : GUISkin;
function Update ()
{
if(Input.GetMouseButtonDown(0) && enter)
{
Ray = camera.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast (ray, out hit3, 5.0f))
{
if(audio.mute)
audio.mute = false;
else
audio.mute = true;
}
}
}
function OnGUI()
{
GUI.skin = mySkin;
if(enter)
{
GUI.Label(new Rect(Screen.width/2 - 75, Screen.height - 100, 200, 200), "do whatever");
}
}
This is getting errors with just line 10, saying that the
Unexpected token: 5.0f. and
BCE0044: expecting ), found ',' and finally
BCE0044: expecting ), found 'hit3'
What is the issue, those shouldn't be errors, they should be there?
Why is it considering them errors?
↧