11 lines
252 B
C#
11 lines
252 B
C#
|
using UnityEngine;
|
|||
|
|
|||
|
public class ObjectRotate : MonoBehaviour
|
|||
|
{
|
|||
|
public float angleSpeed;
|
|||
|
public Vector3 axis = Vector3.up;
|
|||
|
private void Update()
|
|||
|
{
|
|||
|
transform.Rotate(axis, Time.unscaledDeltaTime * angleSpeed);
|
|||
|
}
|
|||
|
}
|