Ejemplo n.º 1
0
 virtual public void OnScrollView_ClickItem(CUGUIScrollItem pScrollItem, IScrollItem_Data pScrollData, Enum_InputName eButtonName)
 {
     if (CheckDebugFilter(EDebugFilter.Debug_Level_Core))
     {
         Debug.Log(ConsoleProWrapper.ConvertLog_ToCore(pScrollItem.name + "OnScrollView_ClickItem - Data : " + pScrollData + " Button Name : " + eButtonName), pScrollItem);
     }
 }
Ejemplo n.º 2
0
    public void EventInitScrollView_CreateScrollItem <Data_ScrollItem>(GameObject pObjectScrollItemOrigin, Transform pTransformScrollItemParent, List <Data_ScrollItem> listDataScrollItem)
        where Data_ScrollItem : IScrollItem_Data
    {
        listDataScrollItem.Sort(ComparerScrollItem);
        for (int i = 0; i < listDataScrollItem.Count; i++)
        {
            GameObject      pObjectScrollItem = GameObject.Instantiate(pObjectScrollItemOrigin) as GameObject;
            CUGUIScrollItem pScrollItme       = pObjectScrollItem.GetComponent <CUGUIScrollItem>();
            pScrollItme.EventOnAwake();
            pScrollItme.EventInitScrollItem <Enum_InputName>(OnScrollView_ClickItem);
            pScrollItme.EventSetScrollData(listDataScrollItem[i]);

            pObjectScrollItem.transform.SetParent(pTransformScrollItemParent);
            pObjectScrollItem.transform.DoResetTransform();
        }

        pObjectScrollItemOrigin.SetActive(false);
    }
Ejemplo n.º 3
0
 virtual public void OnScrollView_ClickItem(CUGUIScrollItem pScrollItem, IUGUIScrollItemData pScrollData, Enum_InputName eButtonName)
 {
 }