From 23ef235a263191230031dfaa02c054197fdddd91 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Tue, 20 Oct 2020 14:08:19 +0800
Subject: [PATCH] 完善PVE界面逻辑,使用正式的界面资源 解决bug:1.打掉小怪没有获得金币 2.摧毁塔位 塔没有消失

---
 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