VRCivilisation2/Assets/ro1.cs

20 lines
394 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ro1 : MonoBehaviour
{
public float rotationSpeed = 100f; // 旋转速
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.Rotate(rotationSpeed * Time.deltaTime, 0, 0);
}
}