| | |
| | | /// </summary> |
| | | private static List<EndlessBuffConfig> randomBuffList; |
| | | |
| | | /// <summary> |
| | | /// 颜色品阶 |
| | | /// </summary> |
| | | /// <typeparam name="Color"></typeparam> |
| | | /// <returns></returns> |
| | | private static List<Color> rareColorList = new List<Color>() |
| | | { |
| | | new Color(118 / 255f, 1, 118 / 255f), |
| | | new Color(131 / 255f, 181 / 255f, 1), |
| | | new Color(220 / 255f, 112 / 255f, 1), |
| | | }; |
| | | |
| | | public static void Init() |
| | | { |
| | | endlessBuffList = JsonDataCenter.GetList<endless_buff>(); |
| | |
| | | } |
| | | allEndlessConfig.Add(newConfig); |
| | | } |
| | | |
| | | InitEndlessBuffPool(1); |
| | | GetRandomBuffList(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | return randomBuffList[index]; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 根据品质获得颜色值 |
| | | /// </summary> |
| | | /// <param name="rare"></param> |
| | | /// <returns></returns> |
| | | public static Color GetColorByRare(int rare) |
| | | { |
| | | return rareColorList[rare - 1]; |
| | | } |
| | | } |
| | | } |