public override bool IsInside(Point3D p, int height) { bool isInside = base.IsInside(p, height); if (!isInside) { return(Fixtures != null && Fixtures.OfType <HouseTeleporter>().Any(fix => fix.Location == p)); } return(isInside); }
public override bool IsInside(Point3D p, int height) => base.IsInside(p, height) || Fixtures?.OfType <HouseTeleporter>().Any(fix => fix.Location == p) == true;