保存进度

This commit is contained in:
2025-05-17 22:33:16 +08:00
parent d891e3f0ee
commit bc5b21da4f
10 changed files with 82 additions and 103 deletions

View File

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