예제 #1
0
	void Start () 
    {
        if (IntPtr.Size == 8) Debugger.Log("64 go");
        Application.RegisterLogCallback(ShowTips);           
        new LuaResLoader();          
        state = new LuaState();
        state.Start();
        LuaBinder.Bind(state);                       
        state.DoFile("Test.lua");        
        state.LuaGC(LuaGCOptions.LUA_GCCOLLECT);
        state.LogGC = true;        

        state.LuaRawGlobal("xxoo");
        string error = null;
        int n = state.CheckInteger(-1, out error);
        Debugger.Log("xxoo {0}", n);
	}