I have created a public variable int in my Acting class called robotsDestroyed, what I want to do is, when I shoot the object I want the count to increase, but i am using the eat() method. Is there anyway to modify this so that i can add robotsDestroyed = robotsDestroyed +1;
That way in the Act() method I can do: if(robotsDestroyed ==8){//end game}
Im having trouble getting it to count basically.
If you can think of any other way to do this, i would appreciate the help!

