10 lines
223 B
C#
10 lines
223 B
C#
using UnityEngine;
|
|
|
|
public class Rotator : MonoBehaviour {
|
|
int speed = 5;
|
|
|
|
// Update is called once per frame
|
|
void Update() {
|
|
transform.Rotate(new Vector3(15, 30, 45) * (Time.deltaTime * speed));
|
|
}
|
|
} |