Files
Cielonos/Assets/Plugins/AllIn13DShader/Demo/Scripts/AllIn1AutoRotate.cs
SoulliesOfficial d94241f36c 场景设计
2026-01-12 03:22:16 -05:00

15 lines
384 B
C#

using UnityEngine;
namespace AllIn13DShader
{
public class AllIn1AutoRotate : MonoBehaviour
{
[SerializeField] private float rotationSpeed = 30f;
[SerializeField] private Vector3 rotationAxis = Vector3.up;
private void Update()
{
transform.Rotate(rotationAxis * (rotationSpeed * Time.deltaTime), Space.World);
}
}
}