Пример #1
0
 public RangeObjectV2PhysicsEventListener_Delegated(InteractiveObjectTagStruct interactiveObjectSelectionGuard,
                                                    Action <CoreInteractiveObject> onTriggerEnterAction = null, Action <CoreInteractiveObject> onTriggerExitAction = null)
 {
     OnTriggerEnterAction            = onTriggerEnterAction;
     OnTriggerExitAction             = onTriggerExitAction;
     InteractiveObjectSelectionGuard = interactiveObjectSelectionGuard;
 }
Пример #2
0
 public SelectableObjectPhysicsEventListener(OnPlayerTriggerInSelectionEnterDelegate OnPlayerTriggerInSelectionEnter, OnPlayerTriggerInSelectionExitDelegate OnPlayerTriggerInSelectionExit)
 {
     InteractiveObjectTagStruct = new InteractiveObjectTagStruct {
         IsPlayer = 1
     };
     this.OnPlayerTriggerInSelectionEnter = OnPlayerTriggerInSelectionEnter;
     this.OnPlayerTriggerInSelectionExit  = OnPlayerTriggerInSelectionExit;
 }
Пример #3
0
 public RangeIntersectionV2Listener_Delegated(RangeObjectV2 associatedRangeObject, InteractiveObjectTagStruct InteractiveObjectSelectionGuard,
                                              Action <CoreInteractiveObject> OnInterestedNothingAction   = null, Action <CoreInteractiveObject> OnJustIntersectedAction    = null, Action <CoreInteractiveObject> OnJustNotIntersectedAction = null,
                                              Action <CoreInteractiveObject> OnTriggerEnterSuccessAction = null, Action <CoreInteractiveObject> OnTriggerExitSuccessAction = null) : base(associatedRangeObject)
 {
     this.OnInterestedNothingAction       = OnInterestedNothingAction;
     this.OnJustIntersectedAction         = OnJustIntersectedAction;
     this.OnJustNotIntersectedAction      = OnJustNotIntersectedAction;
     this.OnTriggerEnterSuccessAction     = OnTriggerEnterSuccessAction;
     this.OnTriggerExitSuccessAction      = OnTriggerExitSuccessAction;
     this.InteractiveObjectSelectionGuard = InteractiveObjectSelectionGuard;
 }
Пример #4
0
 public RangeObstaclePhysicsEventListener(ObstacleListenerSystem associatedObstacleListener)
 {
     AssociatedObstacleListener = associatedObstacleListener;
     this.SelectionGuard        = new InteractiveObjectTagStruct(isObstacle: 1);
 }