Advertisement
LittleAngel

Simplified Touch Button

Sep 6th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. function Update () {
  2. if (Input.touchCount > 0) {
  3. for (var touch : Touch in Input.touches) {
  4. if (theButton.HitTest(touch.position)) {
  5. // DoSomething();
  6. }
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement