Example #1
0
 private void OnMessage(UIViewMessage message)
 {
     if (ListenForAllUIViews ||
         message.View.ViewCategory.Equals(ViewCategory) && message.View.ViewName.Equals(ViewName))
     {
         InvokeEvent(message);
     }
 }
Example #2
0
 private void InvokeEvent(UIViewMessage message)
 {
     if (Event == null)
     {
         return;
     }
     if (TriggerAction != message.Type)
     {
         return;
     }
     Event.Invoke(message.View);
     if (DebugMode)
     {
         DDebug.Log("[" + name + "] Triggered Event: " + "[" + message.Type + "] " + message.View.ViewCategory + " - " + message.View.ViewName, this);
     }
 }