新增脚本

This commit is contained in:
2025-12-26 20:35:52 +08:00
parent 875960d3fd
commit 45129be7dc
60 changed files with 3384 additions and 70247 deletions

View File

@@ -0,0 +1,33 @@
using System;
using UnityEngine;
namespace NBF
{
public class FixedLine : MonoBehaviour
{
public Transform target;
private Rigidbody _rigidbody;
private void Awake()
{
_rigidbody = GetComponent<Rigidbody>();
}
private void LateUpdate()
{
// FixLine();
}
private void FixedUpdate()
{
FixLine();
}
private void FixLine()
{
if (!target) return;
_rigidbody.MovePosition(target.position);
}
}
}