简体   繁体   中英

How can I make my game disable simultaneous taps?

Hi I have a quiz game my problem is when the user tap the three choices at the same time they will always have the right answer, i want to disable that, is it possible? Thanks you.

it depends if you need multitouch for something else, or else you should be able to just do multiTouchEnabled = false; ( https://docs.unity3d.com/ScriptReference/Input-multiTouchEnabled.html )

You could also in your code disable all input as soon as you register the first touch, so when just one of the buttons gets touched, turn off the collider on all the other buttons.

If this doesn't help we will need to see some code to be able to help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM