LuaGC() 공개 메소드

public LuaGC ( object o ) : void
o object
리턴 void
예제 #1
0
	void Start () 
    {        
        Application.RegisterLogCallback(ShowTips);           
        new LuaResLoader();          
        state = new LuaState();
        state.Start();
        LuaBinder.Bind(state);                       
        state.DoFile("Test.lua");        
        state.LuaGC(LuaGCOptions.LUA_GCCOLLECT);      
	}
예제 #2
0
	void Start () 
    {        
#if UNITY_5		
		Application.logMessageReceived += ShowTips;
#else
        Application.RegisterLogCallback(ShowTips);
#endif         
        new LuaResLoader();          
        state = new LuaState();
        state.Start();
        LuaBinder.Bind(state);                       
        state.DoFile("Test.lua");        
        state.LuaGC(LuaGCOptions.LUA_GCCOLLECT);
        state.LogGC = true;        
	}
예제 #3
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);
	}
예제 #4
0
    void Start()
    {
        #if UNITY_5
        Application.logMessageReceived += ShowTips;
        #else
        Application.RegisterLogCallback(ShowTips);
        #endif
        new LuaResLoader();
        state = new LuaState();
        state.Start();
        LuaBinder.Bind(state);
        state.DoFile("TestPerf.lua");
        state.LuaGC(LuaGCOptions.LUA_GCCOLLECT);
        state.LogGC = false;

        Debug.Log(typeof(List<int>).BaseType);
    }