public void Unregist(T eid, XTEventDelegate1 edlg) { if (this.m_events.ContainsKey(eid) && this.m_events[eid].Remove(edlg)) { this.m_events.Remove(eid); } }
// ---------------------------------------------------------- // public // ---------------------------------------------------------- public void Regist(T eid, XTEventDelegate1 edlg) { if (!this.m_events.ContainsKey(eid)) { this.m_events[eid] = new XTEventDelegates <T>(eid); } this.m_events[eid].Add(edlg); }