static int Instance(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); SceneMgr o = MonoSingleton <SceneMgr> .Instance(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }