private void InitPublicWindow(WindowType type, List <SMsgChat_SC> list) { GameObject window = UI.CreatObjectToNGUI.InstantiateObj(ChatWindowItemPrefab, DraggablePanelList); ChatWindowItem chatWindowItem = window.GetComponent <ChatWindowItem>(); m_windowDict.Add(type, chatWindowItem); chatWindowItem.InitWindow(list, null); }
private void InitPrivateWindow(int chaterID, List <SMsgChat_SC> list) { GameObject window = UI.CreatObjectToNGUI.InstantiateObj(ChatWindowItemPrefab, DraggablePanelList); ChatWindowItem chatWindowItem = window.GetComponent <ChatWindowItem>(); m_privateWindowDict.Add(chaterID, chatWindowItem); chatWindowItem.InitWindow(list, null); if (iTalkToWorldID != chaterID) { chatWindowItem.Close(); } }