示例#1
0
    public void Refresh()
    {
        //mLoopListView.mTmpPooledItemList.Clear();
        //mLoopListView.mPooledItemList.Clear();
        //mLoopListView.mItemPoolList.Clear();
        //mLoopListView.mItemPoolDict.Clear();

        mLoopListView.RecycleAllItem();
        mLoopListView.ClearAllTmpRecycledItem();
        mItemDataList.Clear();
        pList.Clear();
        for (int a = 0; a < mLoopListView.transform.GetChild(1).GetChild(0).childCount - 1; a++)
        {
            if (a > 0 && mLoopListView.transform.GetChild(1).GetChild(0).GetChild(a).gameObject.name.Contains("Clone"))
            {
                //Destroy(mLoopListView.transform.GetChild(1).GetChild(0).GetChild(a).gameObject);
                //if(mLoopListView.transform.GetChild(1).GetChild(0).GetChild(a).gameObject!=null)
                //Debug.Log(mLoopListView.transform.GetChild(1).GetChild(0).GetChild(a).gameObject);
                mLoopListView.transform.GetChild(1).GetChild(0).GetChild(a).GetChild(3).gameObject.GetComponent <EventTrigger>().enabled = true;
            }
        }
        //mLoopListView.RefreshAllShownItem();
    }