Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAtul Surve
Courses Plus Student 587 PointsI want to start the game using touch other then spacebar
I want to start the game using touch like for android games
1 Answer
Nick Pettit
Treehouse TeacherHi Atul,
This is a complicated answer and I can't write out all the code needed for you to do this, but I can point you in the right direction. In short, any calls made to the Input class will need to be ported to use the corresponding touch inputs instead. You can read more about the Input class here: http://docs.unity3d.com/ScriptReference/Input.html
More specifically, you'll want to look at the variables and methods on the Input class that have the word "Touch" in them. I hope that helps get you started!