Files
VR-WuKong/Assets/ThirdParty/BruteForce/Scripts/BF_Rotator.cs

13 lines
276 B
C#
Raw Normal View History

2025-11-14 18:44:06 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BF_Rotator : MonoBehaviour
{
public float RotSpeed = 1;
void Update()
{
this.transform.Rotate(new Vector3(0, RotSpeed*Time.deltaTime, 0), Space.World);
}
}