예제 #1
0
        public void RegisterIntersectionEventListener(ARangeIntersectionV2Listener ARangeIntersectionV2Listener,
                                                      RangeObjectV2PhysicsEventListenerComponent associatedRangeObjectV2PhysicsEventListenerComponent)
        {
            if (RangeIntersectionListeners == null)
            {
                RangeIntersectionListeners = new List <ARangeIntersectionV2Listener>();
            }

            associatedRangeObjectV2PhysicsEventListenerComponent.AddPhysicsEventListener(ARangeIntersectionV2Listener);
            RangeIntersectionListeners.Add(ARangeIntersectionV2Listener);
        }
예제 #2
0
 public RangeObstacleListenerSystem(RangeObjectV2 rangeObjectV2Ref, RangeObjectV2PhysicsEventListenerComponent rangeObjectV2PhysicsEventListenerComponent) : base(rangeObjectV2Ref)
 {
     this.ObstacleListener = new ObstacleListenerSystem(new Func <TransformStruct>(() => rangeObjectV2Ref.GetTransform()));
     this.RangeObstaclePhysicsEventListener = new RangeObstaclePhysicsEventListener(this.ObstacleListener);
     rangeObjectV2PhysicsEventListenerComponent.AddPhysicsEventListener(this.RangeObstaclePhysicsEventListener);
 }