I added an object 9 times. Everytime the object is touched by the player, it gets deleted and adds one point. At 9 points the game should end.
But the game over screen doesn’t appear, when it is at 9 points, while all 9 objects are deleted.
The issue could be solved by adding a 10th object (outside of player view).
Is it intended, that the code isn’t working, when there is no object in the game anymore?