In my game, when two objects collide the number of points increases. However, it seems like the collision is being detected twice so the points are incrementing twice.
Is there any way I can include a cooldown or another method so that there won’t be repeated collisions?