Quantcast
Channel: Answers by "Althaen"
Viewing all articles
Browse latest Browse all 33

Answer by Althaen

$
0
0
I think this should work. static var maxSpeed = 0; private var lightOn = false; Update () { if (Input.GetKeyDown(KeyCode.Q)){ if(lightOn==false){ lightOn = true; maxSpeed = 1; } else{ lightOff = false maxSpeed = 2; } } }

Viewing all articles
Browse latest Browse all 33

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>