LuaSetTop() public méthode

public LuaSetTop ( int top ) : void
top int
Résultat void
Exemple #1
0
 public LuaScriptMgr()
 {
     Instance = this;
     lua      = new LuaState();
     lua.OpenLibs(LuaDLL.luaopen_pb);
     lua.LuaSetTop(0);
 }
 public void Dispose()
 {
     if (state != null)
     {
         state.LuaSetTop(top);
         state = null;
     }
 }
        // Use this for initialization
        void Awake()
        {
            loader = new LuaLoader();
            lua = new LuaState();
            this.OpenLibs();
            lua.LuaSetTop(0);

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