| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UnityEngine.GameObject); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 12, 8, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 8, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddComponent", _m_AddComponent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLayer", _m_SetLayer); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetRenderSortingOrder", _m_SetRenderSortingOrder); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetLayer(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __layer = LuaAPI.xlua_tointeger(L, 2); |
| | | bool __recursive = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | gen_to_be_invoked.SetLayer( __layer, __recursive ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetRenderSortingOrder(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UnityEngine.GameObject gen_to_be_invoked = (UnityEngine.GameObject)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _sortingOrder = LuaAPI.xlua_tointeger(L, 2); |
| | | bool _includeChildren = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | gen_to_be_invoked.SetRenderSortingOrder( _sortingOrder, _includeChildren ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |