- Home /
This question was
closed Feb 06, 2014 at 06:29 AM by
AlucardJay for the following reason:
Duplicate Question : http://answers.unity3d.com/questions/632456/flash-light-off-on-start.html
Question by
mavii_ege · Feb 06, 2014 at 06:12 AM ·
sceneflashlightbasic
Closing flashlight on scene load
İ got my script running but when i debug the game flashlight starts open how do i fix it ? my code #pragma strict
function Update ()
{
if (Input.GetKeyDown(KeyCode.F))
{
if(light.enabled == false)
{
light.enabled = true;
}
else
{
light.enabled = false;
}
}
}
Comment
Best Answer
Answer by getyour411 · Feb 06, 2014 at 06:12 AM
How is this any different
http://answers.unity3d.com/questions/632456/flash-light-off-on-start.html
sorry i was trying to post from tablet it was very buggy posted couple of times i guess thanks for help
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Player spawns @ different spot? 1 Answer
Top down house Help 2 Answers
how to load a scene 1 Answer
I made a better shader how do i fix[add _Shadow Strength]help???>Sorry that im asking for to much 1 Answer