static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.GRoot obj = (FairyGUI.GRoot)ToLua.CheckObject <FairyGUI.GRoot>(L, 1); obj.Dispose(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void ClearInst() { inst.Dispose(); _inst = null; }