Example #1
0
    public static void delegateInvoke(DelegateEnum dEnum, object[] msgData)
    {
        CommonDelegate delegates = StaticDelegateManager.Instance().delegateMapping[(int)dEnum];

        if (delegates != null)
        {
            delegates.Invoke(msgData);
        }
    }
Example #2
0
    public void delegateInvoke(DelegateEnum dEnum, object[] msgData)
    {
        if (!delegateMapping.ContainsKey(dEnum))
        {
            //Debug.Log("DelegateManager-->delegateInvoke NULL" + dEnum.ToString());
            return;
        }
        CommonDelegate delegates = delegateMapping[dEnum];

        if (delegates != null)
        {
            delegates.Invoke(msgData);
        }
    }