示例#1
0
 public BehaviorCheckListenerBridge(System.IntPtr _helperFactory, BehaviorCheckListener _listener)
 {
     listener      = _listener;
     helperFactory = _helperFactory;
     onResultInPositiveCallback = () => {
         listener.OnResultInPositive();
     };
     ImplPtr = NewBehaviorCheckListener(helperFactory, onResultInPositiveCallback);
 }
示例#2
0
 public void Elapse(float deltaTime)
 {
     if (didAlreadyHit)
     {
         return;
     }
     timeElapsed += deltaTime;
     if (parent.triggerTime <= timeElapsed)
     {
         behaviorListener.OnResultInPositive();
         didAlreadyHit = true;
     }
 }
示例#3
0
 void BehaviorCheckListener.OnResultInPositive()
 {
     clientListener.OnResultInPositive();
 }