¡Por supuesto! Es muy simple.

using UnityEngine;

public class Rotator : MonoBehaviour
{

    [SerializeField]
    private Vector3 rotationAxis = Vector3.up;

    [SerializeField]
    private float rotationSpeed = 10.0f;
    
    public bool isRotating = false;

    void Update()
    {

        if(){


        }

        float deltaTime = Time.deltaTime;
        transform.Rotate(rotationAxis, rotationSpeed * deltaTime);
    }

    public void SetRotationAxis(Vector3 newAxis)
    {
        rotationAxis = newAxis;
    }

    public void SetRotationSpeed(float newSpeed)
    {
        rotationSpeed = newSpeed;
    }
}
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence