Unity 3D Multitouch Function Crash
I have a button creates objects on the scene and functions limit the button if capacity exceeded.
Here are my button functions which checks if user can create my object, then creates the object or gives feedback sound.
The problem is whenever the user on mobile gets closer to the maximum capacity limit, and if user touches the button so fast with multiple fingers, the whole game freezes and crashes.
,I have a button creates objects on the scene and functions limit the button if capacity exceeded.
Here are my button functions which checks if user can create my object, then creates the object or gives feedback sound. The problem is whenever the user on mobile gets closer to the maximum capacity limit, and if user touches the button so fast with multiple fingers, the whole game freezes and crashes.