I wanted to learn how to make 3D games so I downloaded Unity. I am also one of the few people trying to code with Boo and I would like to know how to receive input from the arrow keys with Boo.
2 Answers
2import UnityEngine
import System.Collections
class example(MonoBehaviour):
public projectile as GameObject
def Update():
if Input.GetButtonDown('Fire1'):
//Do stuff here
Well, I don't know much about Boo... And also, if you know that in the API, you can change it to Boo...
http://unity3d.com/support/documentation/ScriptReference/Input.html
Click on what you want, and then it'll say either C# or Javascript, click that, and change to Boo...
Hope this helps aid you =).
I’ve found this converter to be really helpful when going from C# to Boo: