Files
Fishing2/Assets/Scripts/Fishing/Rope/RopeBase.cs
2026-04-06 11:35:18 +08:00

22 lines
498 B
C#

using UnityEngine;
namespace NBF
{
public abstract class RopeBase : MonoBehaviour, IRope
{
[Header("Anchors")] [SerializeField] public Rigidbody startAnchor;
[SerializeField] public Rigidbody endAnchor;
public float CurrentLength { get; protected set; }
public void SetLineLength(float length)
{
CurrentLength = length;
}
protected virtual void OnSetLineLength(float length)
{
}
}
}