public class EndlessRotation : MonoBehaviour
{
[SerializeField] private Vector3 _rotation;
private void Update()
{
_rotation.x += 10 * Time.deltaTime;
_rotation.y += 15 * Time.deltaTime;
_rotation.z += 20 * Time.deltaTime;
for (var i = 0; i < 3; i++)
{
if (_rotation[i] >= 360f)
_rotation[i] -= 360f;
}
transform.rotation = Quaternion.Euler(_rotation);
}
}