Skip to content

Instantly share code, notes, and snippets.

@ndrluis
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save ndrluis/8908105 to your computer and use it in GitHub Desktop.

Select an option

Save ndrluis/8908105 to your computer and use it in GitHub Desktop.
function Update(){
if(Input.GetKeyDown("f")){
light.enabled = !light.enabled;
}
}
def update
if Input.get_key_down('f')
light.enabled = !light.enabled
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment