hi friends I created spot light. "f " key to on light. and again " f " key and close light ?
my script :
function Update () {
if (Input.GetKeyDown ("f")) {
var fener_isik : Light = gameObject.Find ("fener").GetComponent (Light);
fener_isik.enabled = true;
var button_ses : AudioClip ;
audio.Play ();
}
}