lvjincheng 4 лет назад
Родитель
Сommit
137bc2bb95
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Assets/BowArrow/Scripts/Game/ArmBow.cs
  2. 1 1
      Assets/BowArrow/Scripts/Game/Arrow.cs

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

@@ -48,7 +48,7 @@ public class ArmBow : MonoBehaviour
         //initdata
         int currentShootLevel = LoginMgr.myUserInfo.shootLevel;
         shootBackTime = new int[]{0, 2, 5}[currentShootLevel];
-        shootOffsetAngleScale = new float[]{0, 8.5f, 10f}[currentShootLevel];
+        shootOffsetAngleScale = new float[]{0, 10f, 10f}[currentShootLevel];
     }
 
     void Start()

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

@@ -118,7 +118,7 @@ public class Arrow : MonoBehaviour
                 if (Mathf.Abs(deltaAngleX) < maxDeltaAngleX) {
                     finalAngleX = Mathf.Clamp(absoluteAngleX + offsetAngleX, -89, 89);
                     plusOffsetAngleY = true;
-                    if (Math.Abs(offsetAngle) < 0.01) {
+                    if (Math.Abs(offsetAngle) < 0.001) {
                         canPerfectHit = true;
                     }
                     if (rayHitTargetBody && Mathf.RoundToInt(rayHitTargetBody.GetDistance()) >= 50 && UnityEngine.Random.value < 0.5) {