首次提交

This commit is contained in:
Bob.Song
2026-03-05 18:07:55 +08:00
commit e125bb869e
4534 changed files with 563920 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
public class MoveCircle : MonoBehaviour
{
[SerializeField] float radius = 1f;
[SerializeField] float angularSpeed = 1f;
float angle = 0;
Vector3 center;
void Awake()
{
center = transform.position;
}
void Update()
{
angle += Time.deltaTime * angularSpeed;
Vector3 dir = Quaternion.AngleAxis(angle, Vector3.forward) * Vector3.up;
transform.position = center + dir * radius;
}
}