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