public void UpdateNet() { int count = m_funs.Count; for (int i = count - 1; i >= 0; i--) { KBEngine.Event.EventObj eobj = m_funs[i]; System.Reflection.MethodInfo method = eobj.info.method; m_funs.RemoveAt(i); try { method.Invoke(eobj.info.obj, eobj.args); } catch (Exception e) { //Debug.LogError(method.Name + e+ " 参数错了!!!!!!!!"); } } }
public void Add(KBEngine.Event.EventObj fun) { m_funs.Add(fun); }