public static void delegateInvoke(DelegateEnum dEnum, object[] msgData) { CommonDelegate delegates = StaticDelegateManager.Instance().delegateMapping[(int)dEnum]; if (delegates != null) { delegates.Invoke(msgData); } }
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); } }