Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

flashlight on and off

$
0
0
function Update() { if (Input.GetKeyDown("f")) { if (light.enabled == true) light.enabled = false; else light.enabled = true; } } this is my code and it said my codes are obsolete

Viewing all articles
Browse latest Browse all 1875

Trending Articles