public void Eat(object eatenObject) { if (eatenObject != null) { mapObjectOperator.DestroyObject(eatenObject, thePacman.objectType); } }