Como posso fazer para contar pontos quando um ator getOneIntersectingObject ?
private int points = 0;
public void act()
{
//moving etc.
if (getOneIntersectionObject(NameOfTheClass.class) != null)
{
points++;
}
}if (isTouching(NameOfTheClass.class))