Files
RollABall/Assets/Scripts/Rotator.cs
2026-03-25 21:23:33 +01:00

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));
}
}