Unity Tutorial - Bug Fix for Watermelon Game

Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=Y8UuEXZ_ZnE



Duration: 7:29
1,515 views
36


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.