Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Update () {
- if (Input.touchCount > 0) {
- for (var touch : Touch in Input.touches) {
- if (theButton.HitTest(touch.position)) {
- // DoSomething();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement