static int GetUICamera(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.UIMgr obj = (WCG.UIMgr)ToLua.CheckObject <WCG.UIMgr>(L, 1); UnityEngine.Camera o = obj.GetUICamera(); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }