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