Original Post
Hey everyone, I have a pretty simple question whose answer I cant seem to find anywhere. Is there a way to determine if an instance of a class exists? Basically I have an array of classes that amount to blocks, when the ball collides with the blocks, they need to disappear. Now, I know the easy way out would be to just set a bool value that states that it has not been hit and once it's hit, set it to true and then don't render that block, but I'm looking for something a little more elegant so I don't waste resources. I've tried a few different things with no luck. Any help would be great. Thanks everyone.