Esempio n. 1
0
        protected void DoInit(LuaState state, LuaSvrFlag flag)
        {
            state.OpenLibrary();
            LuaValueType.Register(state.StatePointer);

            if ((flag & LuaSvrFlag.LSF_EXTLIB) != 0)
            {
                state.OpenExternalLibrary();
            }

            if ((flag & LuaSvrFlag.LSF_3RDDLL) != 0)
            {
                Lua3rdDLL.Open(state.StatePointer);
            }
        }
Esempio n. 2
0
        public IEnumerator BindUnity(Action <int> tickAction, Action onComplete)
        {
            yield return(LuaSvr.DoBind(StatePointer, tickAction, onComplete));

            LuaValueType.Register(StatePointer);
        }
Esempio n. 3
0
 public void BindUnity()
 {
     LuaSvr.DoBind(StatePointer);
     LuaValueType.Register(StatePointer);
 }