瀏覽代碼

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

LAPTOP-OM1V99U2\永远de小亡灵 1 年之前
父節點
當前提交
bbb14e43ba
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 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