Zombiegame/Assets/Scripts/Rotator.cs

10 lines
270 B
C#
Raw Normal View History

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