Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Touch input firing twice on ios

$
0
0
I recently made a simple game for windows phone that has a menu scene that you can touch anywhere to activate the game and subsequently loads my game scene. In the game scene you can then tap to manipulate an object. When I run this on a windows phone or in Unity it works correctly. I've since ported my game to ios, again the interactions work perfectly in Unity itself. However on an actual device, if I touch the menu, it loads the gameScene, but it also seems to fire off a touch event straight away and moves the player object which is incorrect. I'm currently using if (Input.GetButtonUp ("Fire1")) on the menu screen and the game scene to handle the input.Should I change this to one of the "touches" methods?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>