增加表格

This commit is contained in:
Bob.Song
2026-03-06 17:48:22 +08:00
parent 5012097465
commit 68beeb3417
32 changed files with 1258 additions and 22939 deletions

View File

@@ -12,8 +12,7 @@ namespace NBF
public class FRod : FHandItem
{
private float _tension;
/// <summary>
/// 可用的
/// </summary>
@@ -33,11 +32,6 @@ namespace NBF
public FLine Line;
// /// <summary>
// /// 鱼线处理器
// /// </summary>
// public FLineHandler lineHandler;
public Transform GearRoot;
// public FWaterDisplacement LureHookWaterDisplacement;
@@ -67,11 +61,7 @@ namespace NBF
}
}
}
public float currentLineTension;
public float linelenghtDiferent;
public float currentLineStrenght;
private void Awake()
{
@@ -99,13 +89,13 @@ namespace NBF
public void SetLineLength(float lineLength, bool stretchRope = true)
{
if (!Line) return;
if (Line.IsLure)
if (Line.LineType == LineType.Spinning)
{
//没有浮漂类型
Line.Lure.SetJointDistance(lineLength);
if (stretchRope)
{
Line.SetObiRopeStretch(Tension > 0f ? 0f : lineLength);
Line.SetTargetLength(Tension > 0f ? 0f : lineLength);
}
}
else
@@ -115,7 +105,7 @@ namespace NBF
Line.Bobber.SetJointDistance(lineLength - floatLength);
if (stretchRope)
{
Line.SetObiRopeStretch(Tension > 0f ? 0f : lineLength - floatLength);
Line.SetTargetLength(Tension > 0f ? 0f : lineLength - floatLength);
}
}
}
@@ -226,7 +216,6 @@ namespace NBF
if (Hook)
{
Hook.Init(Player, this);
// LureHookWaterDisplacement = Hook.GetComponent<FWaterDisplacement>();
}
if (Bait)