public void StartGame() { if (trigger != null) { trigger.BeginBehavior(new StubBehaviorListener()); } }
void BehaviorTrigger.BeginBehavior(BehaviorListener behaviorListener) { mainTrigger.BeginBehavior(behaviorListener); foreach (var sub in subTriggers) { sub.BeginBehavior(new StubBehaviorListener()); } }
public BehaviorTriggerBridge(System.IntPtr _helperFactory, BehaviorTrigger _controller) { controller = _controller; helperFactory = _helperFactory; beginBehaviorCallback = (bhvrListener) => { controller.BeginBehavior(new NativeBehaviorListener(bhvrListener)); }; ImplPtr = NewBehaviorTrigger(helperFactory, beginBehaviorCallback, stopBehaviorCallback = () => { }, continueBehaviorCallback = () => { } ); }
void BehaviorTrigger.BeginBehavior(BehaviorListener behaviorListener) { process.BeginBehavior(new StubBehaviorListener()); behaviorListener.OnFinish(); }