using UnityEngine;
namespace MonsterTaming
{
///
/// Rotates an object around its local axis at a specified speed.
///
public class RotateObject : MonoBehaviour
{
// Speed of rotation in degrees per second
[SerializeField]
private Vector3 rotationSpeed = new Vector3(0, 100f, 0);
///
/// Rotates the object every frame.
///
void Update()
{
// Rotate the object based on the defined speed and delta time
transform.Rotate(rotationSpeed * Time.deltaTime);
}
}
}