Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        while (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() + "]");
            }
            else
            {
                Debug.Log("Missing Event No. " + args.event_id + " [" + args.GetType() + "]");
            }
        }
    }