重新导入obi
This commit is contained in:
22
Assets/Scripts/Fishing/Rope/RopeBase.cs
Normal file
22
Assets/Scripts/Fishing/Rope/RopeBase.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user