コード例 #1
0
    static int HideExcept(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        ModelShowItem arg0 = (ModelShowItem)LuaScriptMgr.GetUnityObject(L, 1, typeof(ModelShowItem));

        ModelShowItem.HideExcept(arg0);
        return(0);
    }
コード例 #2
0
    static int ShowModel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        ModelShowItem obj = (ModelShowItem)LuaScriptMgr.GetUnityObjectSelf(L, 1, "ModelShowItem");

        obj.ShowModel();
        return(0);
    }
コード例 #3
0
 public static void HideExcept(ModelShowItem exception)
 {
     foreach (ModelShowItem instance in instances)
     {
         if (instance != exception)
         {
             hiddenInstances.Add(instance);
             instance.gameObject.SetActive(false);
         }
     }
 }
コード例 #4
0
    static int get_scaleValue(IntPtr L)
    {
        object        o   = LuaScriptMgr.GetLuaObject(L, 1);
        ModelShowItem obj = (ModelShowItem)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

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

        LuaScriptMgr.Push(L, obj.scaleValue);
        return(1);
    }
コード例 #5
0
    static int set_IsFashion(IntPtr L)
    {
        object        o   = LuaScriptMgr.GetLuaObject(L, 1);
        ModelShowItem obj = (ModelShowItem)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

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

        obj.IsFashion = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
コード例 #6
0
    static int set_ModelScale(IntPtr L)
    {
        object        o   = LuaScriptMgr.GetLuaObject(L, 1);
        ModelShowItem obj = (ModelShowItem)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

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

        obj.ModelScale = (float)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }
コード例 #7
0
    static int set__layerName(IntPtr L)
    {
        object        o   = LuaScriptMgr.GetLuaObject(L, 1);
        ModelShowItem obj = (ModelShowItem)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

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

        obj._layerName = LuaScriptMgr.GetString(L, 3);
        return(0);
    }
コード例 #8
0
    static int set__playerModel(IntPtr L)
    {
        object        o   = LuaScriptMgr.GetLuaObject(L, 1);
        ModelShowItem obj = (ModelShowItem)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

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

        obj._playerModel = (PlayerModel)LuaScriptMgr.GetNetObject(L, 3, typeof(PlayerModel));
        return(0);
    }
コード例 #9
0
 static int ResumeHidden(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 0);
     ModelShowItem.ResumeHidden();
     return(0);
 }