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