代码提交

This commit is contained in:
2026-04-12 23:52:07 +08:00
parent 95700b71c1
commit fbe33f9f3a
16 changed files with 1802 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using UnityEngine;
namespace NBF
{
public class FishingLineNode : MonoBehaviour
{
public enum NodeType
{
Start,
Float,
Weight,
Tail
}
private FishingLineSolver _solver;
[Header("Node")] [SerializeField] private NodeType nodeType = NodeType.Tail;
[SerializeField] private Rigidbody body;
public NodeType Type
{
get => nodeType;
set => nodeType = value;
}
public Rigidbody Body => body;
private void Awake()
{
_solver = GetComponentInParent<FishingLineSolver>();
body = GetComponent<Rigidbody>();
}
}
}