Exemplo n.º 1
0
        private static QuickGridItemPanelBase CreateItemPanel(GameObject parent)
        {
            int        layer = parent.gameObject.layer;
            GameObject go    = new GameObject("ItemPanel");

            go.E_SetParentAndReset(parent);
            go.layer = layer;
            QuickGridItemPanelBase item = go.AddComponent <QuickGridItemPanelBase>();

            return(item);
        }
    static int get_itemPanel(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o;
            littlerbird.UI.QuickGridItemPanelBase ret = obj.itemPanel;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemPanel on a nil value"));
        }
    }