static int SetResourceMode(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityGameFramework.Runtime.ResourceComponent obj = (UnityGameFramework.Runtime.ResourceComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.ResourceComponent)); GameFramework.Resource.ResourceMode arg0 = (GameFramework.Resource.ResourceMode)ToLua.CheckObject(L, 2, typeof(GameFramework.Resource.ResourceMode)); obj.SetResourceMode(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }