LuaSetTop() public method

public LuaSetTop ( int top ) : void
top int
return void
コード例 #1
0
ファイル: LuaScriptMgr.cs プロジェクト: mengtest/HjqstSource
 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
ファイル: LuaClient.cs プロジェクト: yuisunn/UnityCrazy
 protected void Init()
 {
     InitLoader();
     luaState = new LuaState();
     OpenLibs();
     luaState.LuaSetTop(0);
     Bind();
     LoadLuaFiles();
 }