This commit is contained in:
Gerard Gascón 2025-02-02 23:44:44 +01:00
commit f5c1616018
679 changed files with 188502 additions and 0 deletions

View file

@ -0,0 +1,17 @@
using UnityEngine;
public class Rotator : MonoBehaviour
{
[SerializeField] float _speedX = 50f;
[SerializeField] float _speedY = 50f;
[SerializeField] float _speedZ = 50f;
void Update()
{
var rotationX = _speedX * Time.deltaTime;
var rotationY = _speedY * Time.deltaTime;
var rotationZ = _speedZ * Time.deltaTime;
transform.Rotate(rotationX, rotationY, rotationZ, Space.Self);
}
}