Эх сурвалжийг харах

人物方向输入优化:在召唤前优先判断左右方向

LAPTOP-OM1V99U2\永远de小亡灵 1 жил өмнө
parent
commit
bbb14e43ba

+ 3 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -542,6 +542,7 @@ public class PlayerController : MoveCharacter
         {
             if (!isBaseBtnOut)
             {
+                CheckTurn();
                 Summon(0);
             }
             else
@@ -564,6 +565,7 @@ public class PlayerController : MoveCharacter
         {
             if (!isBaseBtnOut)
             {
+                CheckTurn();
                 Summon(1);
             }
             return true;
@@ -572,6 +574,7 @@ public class PlayerController : MoveCharacter
         {
             if (!isBaseBtnOut)
             {
+                CheckTurn();
                 Summon(2);
             }
             else