Ejemplo n.º 1
0
        private void AddNearbySceneObjects(IRegion <TSceneObject> region)
        {
            if (region.SubscriberCount() == 0)
            {
                return;
            }

            nearbySceneObjects.Add(region.GetAllSubscribers());
        }
Ejemplo n.º 2
0
        private void RemoveNearbySceneObjects(IRegion <TSceneObject> region)
        {
            if (region.SubscriberCount() == 0)
            {
                return;
            }

            foreach (var subscriber in region.GetAllSubscribers())
            {
                var transform = subscriber.Transform;

                if (IsOverlapsWithNearbyRegions(transform) == false)
                {
                    nearbySceneObjects.Remove(subscriber);
                }
            }
        }