Пример #1
0
    /* protected - [Event] Function
     * 자식 객체가 호출(For Child class call)		*/

    private void OnSetItem(GameObject pObj, int iWrapID, int iRealID)
    {
        if (_iCountRealItem == 0)
        {
            return;
        }

        iRealID = Mathf.Abs(iRealID);
        CNGUIScrollViewItem pItem = _listScrollViewItem[iWrapID];

        if (_listRealItemData.Count <= iRealID)
        {
            iRealID = _listRealItemData.Count - 1;
        }

        CLASS_Data pData = _listRealItemData[iRealID];

        pItem.DoSetRealID(iRealID);
        _mapScrollViewItem[iRealID] = pItem;
        _mapData_To_RealID[pData]   = iRealID;

        OnSet_Item(pData, pItem);
    }
Пример #2
0
 protected virtual void OnSet_Item(CLASS_Data sData, CNGUIScrollViewItem pItem)
 {
 }