Four of these:
Code: Select all
Assets/Custom Scripts/Flashlight.js(9,42): BCE0005: Unknown identifier: 'Lighton'.
Code: Select all
function Start () {
var Lighton = false;
}
function Update () {
if (Input.GetButtonDown("Flashlight") && Lighton == false)
{
light.intensity = 2;
Lighton = true;
}
if (Input.GetButtonDown( "Flashlight" ) && Lighton == true )
{
light.intensity = 0;
Lighton = false;
}
}
im at a loss