Beispiel #1
0
 public SelectableObjectPhysicsEventListener(OnPlayerTriggerInSelectionEnterDelegate OnPlayerTriggerInSelectionEnter, OnPlayerTriggerInSelectionExitDelegate OnPlayerTriggerInSelectionExit)
 {
     InteractiveObjectTagStruct = new InteractiveObjectTagStruct {
         IsPlayer = 1
     };
     this.OnPlayerTriggerInSelectionEnter = OnPlayerTriggerInSelectionEnter;
     this.OnPlayerTriggerInSelectionExit  = OnPlayerTriggerInSelectionExit;
 }
Beispiel #2
0
 public SelectableObjectPhysicsEventListener(OnPlayerTriggerInSelectionEnterDelegate OnPlayerTriggerInSelectionEnter, OnPlayerTriggerInSelectionExitDelegate OnPlayerTriggerInSelectionExit)
 {
     SelectionGuard = (InteractiveObjectTag) => InteractiveObjectTag.IsPlayer;
     this.OnPlayerTriggerInSelectionEnter = OnPlayerTriggerInSelectionEnter;
     this.OnPlayerTriggerInSelectionExit  = OnPlayerTriggerInSelectionExit;
 }