Esempio n. 1
0
    static int DestroyHUD(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        TBNNCount obj = (TBNNCount)LuaScriptMgr.GetUnityObjectSelf(L, 1, "TBNNCount");

        obj.DestroyHUD();
        return(0);
    }
Esempio n. 2
0
    static int UpdateHUD(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        TBNNCount obj  = (TBNNCount)LuaScriptMgr.GetUnityObjectSelf(L, 1, "TBNNCount");
        int       arg0 = (int)LuaScriptMgr.GetNumber(L, 2);

        obj.UpdateHUD(arg0);
        return(0);
    }
Esempio n. 3
0
    static int get_soundCount(IntPtr L)
    {
        object    o   = LuaScriptMgr.GetLuaObject(L, 1);
        TBNNCount obj = (TBNNCount)o;

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

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

        LuaScriptMgr.Push(L, obj.soundCount);
        return(1);
    }
Esempio n. 4
0
    static int set_soundCount(IntPtr L)
    {
        object    o   = LuaScriptMgr.GetLuaObject(L, 1);
        TBNNCount obj = (TBNNCount)o;

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

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

        obj.soundCount = (AudioClip)LuaScriptMgr.GetUnityObject(L, 3, typeof(AudioClip));
        return(0);
    }