mirror of https://github.com/tuyoogame/YooAsset
15 lines
287 B
C#
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);
|
||
|
}
|
||
|
}
|