| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(UnityEngine.Component); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 3, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 11, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponent", _m_GetComponent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetComponentInChildren", _m_GetComponentInChildren); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessageUpwards", _m_SendMessageUpwards); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMessage", _m_SendMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "BroadcastMessage", _m_BroadcastMessage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindChildComponent", _m_FindChildComponent); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_FindChildComponent(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | UnityEngine.Component gen_to_be_invoked = (UnityEngine.Component)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string __type = LuaAPI.lua_tostring(L, 2); |
| | | string __path = LuaAPI.lua_tostring(L, 3); |
| | | |
| | | UnityEngine.Component gen_ret = gen_to_be_invoked.FindChildComponent( __type, __path ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |