From 81e7393f4d557da31b5063d9d1a6879a742bf012 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 20 九月 2018 10:45:42 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/HappyXB/BestXBWin.cs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/System/HappyXB/BestXBWin.cs b/System/HappyXB/BestXBWin.cs
index 0fa3388..bafc51e 100644
--- a/System/HappyXB/BestXBWin.cs
+++ b/System/HappyXB/BestXBWin.cs
@@ -54,7 +54,10 @@
         [SerializeField] float maxTimeInter = 0.6f;
         [Header("鏈�灏忔椂闂撮棿闅�")]
         [SerializeField] float minTimeInter = 0.005f;
-
+        [Header("闂儊娆℃暟")]
+        [SerializeField] public int flashingTimes = 10;
+        [Header("鍗曟闂儊鏃堕棿")]
+        [SerializeField] public  float flashingTime = 0.2f;
         [Header("寰楀埌鐗╁搧鍋滅暀鏃堕棿")]
         [SerializeField] float stopTime = 2f;
         [Header("瀵诲疂寰楀埌鐗╁搧鍔ㄧ敾鏃堕棿")]
@@ -434,6 +437,14 @@
                 {
                     if (cycle > cycleTimes)
                     {
+                        for (int i = 0; i < xbItemlist.Count; i++)
+                        {
+                            xbItemlist[i].CheckToFlashing(1,curSelectIndex);
+                        }
+                        for (int i = 0; i < xbItemlist.Count; i++)
+                        {
+                            xbItemlist[i].RefreshSelectIcon(curSelectIndex);
+                        }
                         if (isXBMany)
                         {
                             if (targetIndex >= targetIndexs.Count - 1)
@@ -495,7 +506,16 @@
 
         IEnumerator PlaySelectItemAni(bool isEndXB,int targetIndex = 0,int curSelectIndex = 0)
         {
-            yield return new WaitForSeconds(stopTime);
+            XBGetItemConfig getItemConfig = XBModel.GetXBItemConfigByType(1);
+            if(getItemConfig != null && getItemConfig.LuckyGridNum == curSelectIndex)
+            {
+                yield return new WaitForSeconds(flashingTime*flashingTimes);
+            }
+            else
+            {
+                yield return new WaitForSeconds(stopTime);
+            }
+          
             if(isEndXB)
             {
                 if(targetIndexs.Count > 1)

--
Gitblit v1.8.0