Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     while (msgQueue != null && msgQueue.Count > 0)
     {
         ExtendedEventArgs args = msgQueue.Dequeue();
         if (callbackList.ContainsKey(args.event_id))
         {
             callbackList[args.event_id](args);
             Debug.Log("Processed Event No. " + args.event_id + " [" + args.GetType() + "]");
             Debug.Log("Processed Event No. " + args.event_id + " [" + args.ToString() + "]");
         }
         else
         {
             Debug.Log("Missing Event No. " + args.event_id + " [" + args.GetType() + "]");
         }
     }
 }