Event Listener?

I would recommend to not do this check every frame but instead only check when the score is increased. Wasting cycles checking a value that rarely changes (or maybe it does?) seems like a bad idea.

3 Likes