Unity Tutorial - Bug Fix for Watermelon Game
Channel:
Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=Y8UuEXZ_ZnE
Short video where we fix a bug where if you rapidly pressed space button, a bunch of fruit would spawn rather than just one at a time.
In short, we fix the issue by adding a third value of "w" to the "spawnedyet" variable and check what the value is when pressing the space key.