LAPTOP-OM1V99U2\永远de小亡灵 vor 11 Monaten
Ursprung
Commit
922b308c63
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. 7 7
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 7 - 7
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -155,7 +155,7 @@ public class PlayerController : MoveCharacter
     //指挥功能
     private float conductTime;          //指挥按键长按时间
     private int nowConductButton = -1;     //现在按下的指挥键(0.J/1.K/2.L/-1.无)
-    private int cacheCouductId;
+    private int cacheConductId;
     [Header("召唤相应时间")] [Tooltip("在此时间内松手为召唤")] public float totalCacheSummonTime;
     [Header("指挥相应时间")] [Tooltip("在此时间以外松手为指挥")] public float[] canConductTime;
     [Header("指挥相应耗蓝")] [Tooltip("输入相应的技能耗蓝")] public float[] conductCostMp;
@@ -501,7 +501,7 @@ public class PlayerController : MoveCharacter
         if(nowConductButton == 0)
         {
             isBtnWestUp = true;
-            cacheCouductId = nowConductButton;
+            cacheConductId = nowConductButton;
             nowConductButton = -1;
         }
     }
@@ -521,7 +521,7 @@ public class PlayerController : MoveCharacter
         if (nowConductButton == 1)
         {
             isBtnSouthUp = true;
-            cacheCouductId = nowConductButton;
+            cacheConductId = nowConductButton;
             nowConductButton = -1;
         }
     }
@@ -541,7 +541,7 @@ public class PlayerController : MoveCharacter
         if (nowConductButton == 2)
         {
             isBtnEastUp = true;
-            cacheCouductId = nowConductButton;
+            cacheConductId = nowConductButton;
             nowConductButton = -1;
         }
     }
@@ -661,11 +661,11 @@ public class PlayerController : MoveCharacter
 
     public void Conduct()
     {
-        if (mp >= conductCostMp[cacheCouductId])
+        if (mp >= conductCostMp[cacheConductId])
         {
-            mp -= conductCostMp[cacheCouductId];
+            mp -= conductCostMp[cacheConductId];
             uiMp.Show(mp, totalMp);
-            switch (conductSkills[cacheCouductId])
+            switch (conductSkills[cacheConductId])
             {
                 case ConductSkills.Photosphere: