LuaSetTop() публичный Метод

public LuaSetTop ( int top ) : void
top int
Результат void
Пример #1
0
 public LuaScriptMgr()
 {
     Instance = this;
     lua      = new LuaState();
     lua.OpenLibs(LuaDLL.luaopen_pb);
     lua.LuaSetTop(0);
 }
Пример #2
0
 public void Dispose()
 {
     if (state != null)
     {
         state.LuaSetTop(top);
         state = null;
     }
 }
Пример #3
0
        // Use this for initialization
        void Awake()
        {
            loader = new LuaLoader();
            lua = new LuaState();
            this.OpenLibs();
            lua.LuaSetTop(0);

            LuaBinder.Bind(lua);
            LuaCoroutine.Register(lua, this);
        }
Пример #4
0
 protected void Init()
 {
     InitLoader();
     luaState = new LuaState();
     OpenLibs();
     luaState.LuaSetTop(0);
     Bind();
     LoadLuaFiles();
 }