Zombiegame/Assets/Scripts/Rotator.cs
2026-02-05 18:41:18 +09:00

10 lines
270 B
C#

using UnityEngine;
// 게임 오브젝트를 지속적으로 회전하는 스크립트
public class Rotator : MonoBehaviour {
public float rotationSpeed = 60f;
private void Update() {
transform.Rotate(0f, rotationSpeed * Time.deltaTime, 0f);
}
}