what is wrong with my code? it keeps on showing a red underline on counter.add(10)
public void addScore()
{
Actor candywrapper;
candywrapper = getOneObjectAtOffset(0,0, CandyWrapper.class);
if(candywrapper !=null)
{
World world;
world = getWorld();
world.removeObject(candywrapper);
counter.add(10);
}
}
