Files
YooAsset/Assets/Samples~/BasicSample/Script/Runtime/Behaviours/RotateSelf.cs
2022-07-18 14:59:15 +08:00

15 lines
287 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSelf : MonoBehaviour
{
public Vector3 Axis = Vector3.up;
private float _speed = 30f;
void Update()
{
this.transform.Rotate(Axis, Time.deltaTime * _speed);
}
}