Ejemplo n.º 1
0
    public void OnEvent(EventData eventData)
    {
        //Dictionary<byte, object> data = eventData.Parameters;
        //Debug.Log("服务器的事件int" + data[1].ToString());
        //Debug.Log("服务器的事件string" + data[2].ToString());
        EventCode eventCode = (EventCode)eventData.Code;
        EventBase eventBase = DictTool.GetValue(EventDict, eventCode);

        if (eventBase != null)
        {
            eventBase.OnEvent(eventData);
        }
    }