public System.IntPtr NewBehaviorCheckListenerBridge(BehaviorCheckListener listener) { var bridge = new BehaviorCheckListenerBridge(implPtr, listener); bhvrChkListeners.Add(bridge); return(bridge.ImplPtr); }
void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener) { var supLis = new PrvtBCheckSupLis { parent = this, clientListener = behaviorListener }; unityBCheckTrigger.BeginBehavior(supLis); }
public BehaviorCheckListenerBridge(System.IntPtr _helperFactory, BehaviorCheckListener _listener) { listener = _listener; helperFactory = _helperFactory; onResultInPositiveCallback = () => { listener.OnResultInPositive(); }; ImplPtr = NewBehaviorCheckListener(helperFactory, onResultInPositiveCallback); }
void UnityBehaviorCheckTrigger.BeginBehavior(UnityBehaviorCheckSupportListener _behaviorListener) { behaviorListener = _behaviorListener; parent.nameToButtonDict.TryGetValue(buttonName, out button); if (button != null) parent.pickupInterface.AddCandidate(button); }
void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener) { sessions.Add(new PrvtSession { parent = this, behaviorListener = behaviorListener }); }
void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener) { BeginBehavior(implPtr, helperFacytory.NewBehaviorCheckListenerBridge(behaviorListener)); }