Quantcast
Channel: Questions in topic: "keyboard"
Viewing all articles
Browse latest Browse all 605

How to get a key hold to do something which is stored in a variable as KeyCode ?

$
0
0
Instead of KeyCode.W below - if(Input.GetKey(KeyCode.W)) { GetComponent().velocity = Vector2.up * speed * 4; }

Viewing all articles
Browse latest Browse all 605

Trending Articles



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