|
|
@@ -186,6 +186,8 @@ public class ArmBow : MonoBehaviour
|
|
|
if (AimHandler.ins) AimHandler.ins.BanControlObjRotate(true);
|
|
|
}
|
|
|
|
|
|
+ //因为Unity引擎的规则,向上时359~270度,向下是0~90度
|
|
|
+ //为了方便数学运算,换算成 向上时0~90度,向下是0~-90度
|
|
|
float FormatAngle(float value)
|
|
|
{
|
|
|
if (value > 180) value = 360 - value;
|