public override void OnUpdate()
 {
     if (!ignorePastEvent.Value && GlobalEventManager.PeekEvent(eventName.Value))
     {
         Finish();
     }
 }
 public override void OnUpdate()
 {
     if (!ignorePastEvent.Value && GlobalEventManager.PeekEvent(eventName.Value))
     {
         Fsm.SendEventToFsmOnGameObject(Fsm.GameObject, Fsm.Name, succeedFsmEvent.Value);
         Finish();
     }
 }
 public override void OnUpdate()
 {
     base.OnUpdate();
     if (waitConfirm.Value && GlobalEventManager.PeekEvent("HintUI.Confirmed"))
     {
         Finish();
     }
 }
Exemplo n.º 4
0
 bool DoCheck()
 {
     return(events.Count == events.FindAll(a =>
     {
         if (GlobalEventManager.PeekEvent(a, false))
         {
             return true;
         }
         return false;
     }
                                           ).Count);
 }
Exemplo n.º 5
0
 void KillAllEvents()
 {
     events.RemoveAll(a =>
     {
         //So will clear events in events pool
         if (GlobalEventManager.PeekEvent(a))
         {
             return(true);
         }
         return(false);
     }
                      );
     events.Clear();
 }