I have made a method:
And I have created a variable:
And I have a question:
What do I put in the parentheses of getObjects to make it so that when I call this method, I can put in the name of a class?
Thanks for all responses
~Affan
public void destroy() { getWorld().removeObject(actor); }
Actor actor = getWorld().getObjects();