public bool checkCollisionWithTrees(Unit unit,int offset)
{
foreach (CDrawableComponent comp in trees)
if (Math.Abs(comp.unit.position.X - unit.position.X) < offset && Math.Abs(comp.unit.position.Z - unit.position.Z) < offset)
return true;
return false;
//return (monsters.checkCollisionWithBullet(unit) || firstAidManger.checkCollisionWithBullet(unit));
}