I have the assignment in which my animal(Wombat) after 50 steps must disappear.
I did something like this:
public void removeWombat()
{
if(stepsTaken>50)
{
getWorld().removeObject(Wombat);
}
}
And i got error: "cannot find symbol - variable Wombat". How to make this work?