Ejemplo n.º 1
0
        static int _m_DrawRegularPolygon(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    int               _sides    = LuaAPI.xlua_tointeger(L, 2);
                    float             _lineSize = (float)LuaAPI.lua_tonumber(L, 3);
                    UnityEngine.Color _centerColor; translator.Get(L, 4, out _centerColor);
                    UnityEngine.Color _lineColor; translator.Get(L, 5, out _lineColor);
                    UnityEngine.Color _fillColor; translator.Get(L, 6, out _fillColor);
                    float             _rotation  = (float)LuaAPI.lua_tonumber(L, 7);
                    float[]           _distances = (float[])translator.GetObject(L, 8, typeof(float[]));

                    gen_to_be_invoked.DrawRegularPolygon(_sides, _lineSize, _centerColor, _lineColor, _fillColor, _rotation, _distances);



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