Tag Info

New answers tagged


"What happens" depends entirely on how you process the keyboard event queue you're producing. If, during the processing of the queue, you dispatch handling for both the key down and the key up event, nothing interesting happens: the things you do on key-down and on key-up still happen normally, they just happen with less of a delay between them. If you ...


This will set the speed to 8: Hashtable props = new Hashtable(); props.Add("path", iTweenPath.GetPath("train")); props.Add("speed", 8f); iTween.MoveTo(gameObject, props) I like to create a hashtable with all the properties I want to set, then pass it in at a later date. It is of course a matter of preference; I just think it makes things look clearer.

Top 50 recent answers are included