2025-06-08 00:39:11 +09:00

21 lines
484 B
C#

using UnityEngine;
namespace VolumetricFogAndMist2.Demos {
public class FanRotator : MonoBehaviour {
Transform thisTransform;
public float speed = 90;
// Start is called before the first frame update
void Start () {
thisTransform = GetComponent<Transform>();
}
// Update is called once per frame
void Update () {
thisTransform.Rotate(0, speed * Time.deltaTime, 0, Space.Self);
}
}
}