Beispiel #1
0
        static int _m_DrawGlyph(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.BitmapFont gen_to_be_invoked = (FairyGUI.BitmapFont)translator.FastGetCSObj(L, 1);



                {
                    float _x = (float)LuaAPI.lua_tonumber(L, 2);
                    float _y = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Collections.Generic.List <UnityEngine.Vector3> _vertList = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 4, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));
                    System.Collections.Generic.List <UnityEngine.Vector2> _uvList   = (System.Collections.Generic.List <UnityEngine.Vector2>)translator.GetObject(L, 5, typeof(System.Collections.Generic.List <UnityEngine.Vector2>));
                    System.Collections.Generic.List <UnityEngine.Vector2> _uv2List  = (System.Collections.Generic.List <UnityEngine.Vector2>)translator.GetObject(L, 6, typeof(System.Collections.Generic.List <UnityEngine.Vector2>));
                    System.Collections.Generic.List <UnityEngine.Color32> _colList  = (System.Collections.Generic.List <UnityEngine.Color32>)translator.GetObject(L, 7, typeof(System.Collections.Generic.List <UnityEngine.Color32>));

                    int gen_ret = gen_to_be_invoked.DrawGlyph(_x, _y, _vertList, _uvList, _uv2List, _colList);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }