Преглед на файлове

修复召唤使魔后快速释放融魂技不出特效问题

LAPTOP-OM1V99U2\永远de小亡灵 преди 10 месеца
родител
ревизия
6dd488fc4c
променени са 2 файла, в които са добавени 22 реда и са изтрити 1 реда
  1. 4 0
      ActionTowerDefense/Assets/Scripts/Conduct/ConductReadyTip.cs
  2. 18 1
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 4 - 0
ActionTowerDefense/Assets/Scripts/Conduct/ConductReadyTip.cs

@@ -45,6 +45,10 @@ public class ConductReadyTip : MonoBehaviour
             noDemonic[i].SetActive(false);
         }
         isShowingNoDemonic = false;
+        isShowing0 = false;
+        isShowing1 = false;
+        starFx.SetActive(false);
+        star_endFx.SetActive(false);
     }
     public void Show(int id,int demonicId = -1)
     {

+ 18 - 1
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -749,7 +749,6 @@ public class PlayerController : MoveCharacter
             {
                 if (!conductReadyTip.isShowing0 && !conductReadyTip.isShowingNoDemonic)
                 {
-                    Time.timeScale = timeSlowingMultiplier;
                     int boostNum = demonicDic[nowConductButton].Count;
                     int dienum = Mathf.RoundToInt(boostNum * conversionRate[nowConductButton]);
                     if (boostNum == 1)
@@ -767,6 +766,24 @@ public class PlayerController : MoveCharacter
 
                 }
 
+            }
+            else if(conductTime > totalCacheSummonTime)
+            {
+                if(Time.timeScale == 1)
+                {
+                    Time.timeScale = timeSlowingMultiplier;
+                    int boostNum = demonicDic[nowConductButton].Count;
+                    int dienum = Mathf.RoundToInt(boostNum * conversionRate[nowConductButton]);
+                    if (boostNum == 1)
+                    {
+                        dienum = 1;
+                    }
+                    if (dienum == 0)
+                    {
+                        conductReadyTip.Show(2, nowConductButton);
+                    }
+                }
+
             }
             else
             {