Newer
Older
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateAnim : MonoBehaviour
{
public float rotationSpeed = 10f; // Speed of rotation in degrees per second
// Update is called once per frame
void Update()
{
// Rotate the transform around the y-axis
transform.Rotate(0f, rotationSpeed * Time.deltaTime, 0f);
}
}