lvjincheng há 4 anos atrás
pai
commit
94c30d0aec

+ 3 - 1
Assets/BowArrow/Scripts/Game/ArmBow.cs

@@ -30,6 +30,8 @@ public class ArmBow : MonoBehaviour
     [NonSerialized] public bool banReady = false;
     //禁止射击的外部接口
     [NonSerialized] public bool banShoot = false;
+    //禁止被用户输入控制
+    [NonSerialized] public bool banUserShoot = false;
 
     //九轴姿态记录
     // [NonSerialized] public Quaternion[] recordRotations = new Quaternion[100];
@@ -136,7 +138,7 @@ public class ArmBow : MonoBehaviour
     }
 
     public void ADS_fire() {
-        if (!canShoot || banShoot || GameMgr.ins.gamePause) return;
+        if (!canShoot || banShoot || GameMgr.ins.gamePause || banUserShoot) return;
         GameMgr.ins.gameMode.onBowShoot();
         this.pulling = false;
         this.canShoot = false;

+ 1 - 1
Assets/BowArrow/Scripts/Game/GameAssistUI.cs

@@ -60,7 +60,7 @@ public class GameAssistUI : MonoBehaviour
             AudioMgr.ins.PlayBtn();
             TargetView.ins.ReverseActive();
         });
-        if (GameMgr.gameType == 2) {
+        if (GameMgr.gameType == 2 || GameMgr.gameType == 9) {
             targetView.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(45, 30);
             btnViewTarget.transform.GetComponent<RectTransform>().anchoredPosition = new Vector2(45, 195);
         }