Hi i get my flashlight script working but when i debug/run the game its starts on i want it to be closed at first how do i do that
Script
#pragma strict
function Update ()
{
if (Input.GetKeyDown(KeyCode.F))
{
if(light.enabled == false)
{
light.enabled = true;
}
else
{
light.enabled = false;
}
}
}
function Start() {
light.enabled = false;
}
Please review