void EraserToolInputState::DestroyUnitAtScreenCoords( const Vec2f& screenCoords )
{
	EditorState* owner = GetOwnerDerived();
	MapView* mapView = owner->GetMapView();
	Map* map = owner->GetMap();

	// Get the UnitSprite under the pointer (if any).
	UnitSprite* unitSprite = mapView->GetUnitSpriteAtScreenCoords( screenCoords );

	if( unitSprite )
	{
		// If there is a Unit under the pointer, destroy it.
		Unit* unit = unitSprite->GetUnit();
		DebugPrintf( "Erasing UnitSprite at Tile (%d,%d)!", unit->GetTileX(), unit->GetTileY() );
		map->DestroyUnit( unit );
	}
}