Пример #1
0
        public System.IntPtr NewBehaviorCheckListenerBridge(BehaviorCheckListener listener)
        {
            var bridge = new BehaviorCheckListenerBridge(implPtr, listener);

            bhvrChkListeners.Add(bridge);
            return(bridge.ImplPtr);
        }
Пример #2
0
            void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener)
            {
                var supLis = new PrvtBCheckSupLis {
                    parent = this, clientListener = behaviorListener
                };

                unityBCheckTrigger.BeginBehavior(supLis);
            }
Пример #3
0
 public BehaviorCheckListenerBridge(System.IntPtr _helperFactory, BehaviorCheckListener _listener)
 {
     listener      = _listener;
     helperFactory = _helperFactory;
     onResultInPositiveCallback = () => {
         listener.OnResultInPositive();
     };
     ImplPtr = NewBehaviorCheckListener(helperFactory, onResultInPositiveCallback);
 }
Пример #4
0
			void UnityBehaviorCheckTrigger.BeginBehavior(UnityBehaviorCheckSupportListener _behaviorListener) {
				behaviorListener = _behaviorListener;
				parent.nameToButtonDict.TryGetValue(buttonName, out button);
				if (button != null)
					parent.pickupInterface.AddCandidate(button);
			}
Пример #5
0
 void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener)
 {
     sessions.Add(new PrvtSession {
         parent = this, behaviorListener = behaviorListener
     });
 }
Пример #6
0
 void BehaviorCheckTrigger.BeginBehavior(BehaviorCheckListener behaviorListener)
 {
     BeginBehavior(implPtr, helperFacytory.NewBehaviorCheckListenerBridge(behaviorListener));
 }