static int _m_GetMaterial(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1); { int _flags = LuaAPI.xlua_tointeger(L, 2); FairyGUI.BlendMode _blendMode; translator.Get(L, 3, out _blendMode); uint _group = LuaAPI.xlua_touint(L, 4); UnityEngine.Material gen_ret = gen_to_be_invoked.GetMaterial(_flags, _blendMode, _group); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetMaterial(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.MaterialManager gen_to_be_invoked = (FairyGUI.MaterialManager)translator.FastGetCSObj(L, 1); { int _materialType = LuaAPI.xlua_tointeger(L, 2); FairyGUI.BlendMode _blendMode; translator.Get(L, 3, out _blendMode); uint _clipId = LuaAPI.xlua_touint(L, 4); bool _firstInstance; FairyGUI.NMaterial gen_ret = gen_to_be_invoked.GetMaterial( _materialType, _blendMode, _clipId, out _firstInstance); translator.Push(L, gen_ret); LuaAPI.lua_pushboolean(L, _firstInstance); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }