public override void HandlerEvent(MessageArgs args)
    {
        int        window = args.opcode;
        UIEvents   uie    = (UIEvents)window;
        WindowBase wb     = ShowWindow(uie.ToString());

        string newline = "\r\n";

        Debug.Log("--------->>>>>> " + args.ma.ToString() + newline + args.opcode.ToString());
    }
Example #2
0
 public void CallEvent(UIEvents uiEvent, object obj)
 {
     try
     {
         for (int i = 0; i < subscribers[uiEvent].Count; i++)
         {
             // Debug.Log(subscribers[uiEvent][i].Target.GetType().Name + " " + uiEvent + " cont " + i );
             subscribers[uiEvent][i](obj);
         }
     }
     catch
     {
         Debug.LogError(gameObject.name + " " + uiEvent.ToString());
     }
 }