YiHe_AllVersion/YHWeb/Assets/YHElectric/Scripts/Helper/RotateSelf.cs

13 lines
247 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSelf : MonoBehaviour
{
private float speed=50;
void Update()
{
transform.Rotate(Vector3.forward* speed, Space.Self);
}
}