public void RegisterIntersectionEventListener(ARangeIntersectionV2Listener ARangeIntersectionV2Listener, RangeObjectV2PhysicsEventListenerComponent associatedRangeObjectV2PhysicsEventListenerComponent) { if (RangeIntersectionListeners == null) { RangeIntersectionListeners = new List <ARangeIntersectionV2Listener>(); } associatedRangeObjectV2PhysicsEventListenerComponent.AddPhysicsEventListener(ARangeIntersectionV2Listener); RangeIntersectionListeners.Add(ARangeIntersectionV2Listener); }
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); }
public RangeExternalPhysicsOnlyListenersSystem(RangeObjectV2 rangeObjectV2Ref, RangeObjectV2PhysicsEventListenerComponent rangeObjectV2PhysicsEventListenerComponent) : base(rangeObjectV2Ref) { this._rangeObjectV2PhysicsEventListenerComponent = rangeObjectV2PhysicsEventListenerComponent; }