Esempio n. 1
0
    static int GetItemCornerPosInViewPort(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                SuperScrollView.LoopListView2     obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2);
                UnityEngine.Vector3 o = obj.GetItemCornerPosInViewPort(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3)
            {
                SuperScrollView.LoopListView2     obj  = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1);
                SuperScrollView.LoopListViewItem2 arg0 = (SuperScrollView.LoopListViewItem2)ToLua.CheckObject <SuperScrollView.LoopListViewItem2>(L, 2);
                SuperScrollView.ItemCornerEnum    arg1 = (SuperScrollView.ItemCornerEnum)ToLua.CheckObject(L, 3, TypeTraits <SuperScrollView.ItemCornerEnum> .type);
                UnityEngine.Vector3 o = obj.GetItemCornerPosInViewPort(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.LoopListView2.GetItemCornerPosInViewPort"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }