Esempio n. 1
0
    static int IsInteractable(IntPtr L)
    {
        L.ChkArgsCount(1);
        ZFrame.UGUI.UISelectable obj = (ZFrame.UGUI.UISelectable)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UISelectable");
        bool o = obj.IsInteractable();

        L.PushBoolean(o);
        return(1);
    }
Esempio n. 2
0
    static int set_selectable(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UISelectable obj = (ZFrame.UGUI.UISelectable)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name selectable");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index selectable on a nil value");
            }
        }

        obj.selectable = L.ToComponent(3, typeof(UnityEngine.UI.Selectable)) as UnityEngine.UI.Selectable;
        return(0);
    }
Esempio n. 3
0
    static int get_selectable(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UISelectable obj = (ZFrame.UGUI.UISelectable)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name selectable");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index selectable on a nil value");
            }
        }

        L.PushLightUserData(obj.selectable);
        return(1);
    }