Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public override bool IsInside(Point3D p, int height) =>
 base.IsInside(p, height) || Fixtures?.OfType <HouseTeleporter>().Any(fix => fix.Location == p) == true;