Esempio n. 1
0
 private void OnUIDrawerMessage(UIDrawerMessage message)
 {
     if (ActiveGraph != null && !ActiveGraph.Enabled)
     {
         return;
     }
     if (WaitFor != WaitType.UIDrawer)
     {
         return;
     }
     if (DebugMode)
     {
         DDebug.Log("UIDrawerMessage received: " + message.Type + " " + message.Drawer.DrawerName + " // Listening for: " + DrawerName, this);
     }
     if (message.Type != UIDrawerTriggerAction)
     {
         return;
     }
     if (AnyValue || message.Drawer.DrawerName.Equals(DrawerName))
     {
         ContinueToNextNode();
     }
 }
Esempio n. 2
0
 private void OnUIDrawerMessage(UIDrawerMessage message)
 {
     if (PortalGraph != null && !PortalGraph.Enabled)
     {
         return;
     }
     if (ListenFor != ListenerType.UIDrawer)
     {
         return;
     }
     if (DebugMode)
     {
         DDebug.Log("UIDrawerMessage received: " + message.Type + " " + message.Drawer.DrawerName + " // Listening for: " + DrawerName, this);
     }
     if (message.Type != UIDrawerTriggerAction)
     {
         return;
     }
     if (AnyValue || message.Drawer.DrawerName.Equals(DrawerName))
     {
         PortalGraph.SetActiveNodeById(Id);
     }
 }