var fonar : Light; function Start () { fonar.enabled = false; } function Update() { if(Input.GetKeyUp(KeyCode.F)) fonar.enabled = !fonar.enabled; }