public override GameObject InstantiateCell() { ChatItem item = base.InstantiateCell().AddComponent <ChatItem>(); if (OnCreateItemHandler != null) { OnCreateItemHandler(item); } return(item.gameObject); }
private void OnCreateItem(ChatItem item) { item.onClickItemHandle = OpenPlayerInfoPanel; }