Projext/Assets/Z ! M.O.B.A Environment Art Pack 2.0/Scripts/AutoRotary.cs

16 lines
220 B
C#
Raw Normal View History

2026-01-29 06:58:38 +00:00
using UnityEngine;
using System.Collections;
public class AutoRotary : MonoBehaviour {
public Vector3 vector;
void Start () {
}
void Update () {
transform.Rotate(vector*Time.deltaTime, Space.Self);
}
}