From 63133cf5403a9d7fbe3811d20c3d24f26a752449 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Thu, 22 Oct 2020 16:06:35 +0800 Subject: [PATCH] 无尽模式,添加法阵展示和结算界面滑动列表 --- Assets/Scripts/Data/EndlessBuffData.cs | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/Data/EndlessBuffData.cs b/Assets/Scripts/Data/EndlessBuffData.cs index 91055e5..6797b05 100644 --- a/Assets/Scripts/Data/EndlessBuffData.cs +++ b/Assets/Scripts/Data/EndlessBuffData.cs @@ -68,6 +68,19 @@ /// </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), + new Color() + }; + public static void Init() { endlessBuffList = JsonDataCenter.GetList<endless_buff>(); @@ -163,5 +176,15 @@ { return randomBuffList[index]; } + + /// <summary> + /// 根据品质获得颜色值 + /// </summary> + /// <param name="rare"></param> + /// <returns></returns> + public static Color GetColorByRare(int rare) + { + return rareColorList[rare - 1]; + } } } \ No newline at end of file -- Gitblit v1.9.1