// 添加 点击回调函数 void AddClickCallback(OperateCardList.TYPE type, OnClickCallbacked callback) { if (m_clickList.ContainsKey(type)) { m_clickList[type] = callback; } else { m_clickList.Add(type, callback); } }
// 添加 排列 回调函数 void AddSortCallback(OperateCardList.TYPE type, OnSortCallbacked callback) { if (m_sortList.ContainsKey(type)) { m_sortList[type] = callback; } else { m_sortList.Add(type, callback); } }
// 添加子窗口 void AddNewWindow(OperateCardList.TYPE type, UIWindow wnd) { if (m_wndList.ContainsKey(type)) { return; } m_wndList.Add(type, wnd); wnd.SetParent(WindowRoot); m_clickList.Add(type, null); m_sortList.Add(type, null); }