public ChatCellStruct(UIMessageChatCell _cell, SockWorldChatData _data, ChatCellType _celltype, int _index) { _UIMessageChatCell = _cell; _SockWorldChatData = _data; _ChatCellType = _celltype; _IndexLabel = _index; }
UIMessageChatCell CreateMessageChatCell() //创建聊天的Cell { UIMessageChatCell mm = null; GameObject obj1 = PrefabLoader.loadFromPack("LS/pbLSInformationChatCell", true, true) as GameObject; if (obj1 != null) { GameObject go = NGUITools.AddChild(mUIMessageMain.mUITable2.gameObject, obj1); go.gameObject.name = (999 - _NowChatCellIndex).ToString(); mm = go.gameObject.GetComponent <UIMessageChatCell>(); _NowChatCellIndex++; } return(mm); }
public void SetCellScript(UIMessageChatCell _cell) { _UIMessageChatCell = _cell; }