Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
See: http://docs.unity3d.com/Documentation/ScriptReference/Input.GetKey.html This tells you that `GetKey()` returns a `bool`. The compiler is telling you that this `bool` cannot be converted into a `float`. If you compare with `GetAxis()` you'll see that that returns a `float`.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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