Can someone help me fix this error for my score counter?
Here is where I'm getting these issues
public void checkCollision()
{
Actor bee2 = (Actor) getOneIntersectingObject(Bee2.class);
if(bee2 != null)
{
getWorld().removeObject(bee2);
getWorld().removeObject(this);
Greenfoot.playSound("splat.mp3");
Counter counter = Fields.obtainCounter();
Counter.numberCount(+1);
}
}
The last 2 lines are where my errors are at.
