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