Files
CartoonFPS/Assets/FPS Framework/Scripts/Utilities/AutoRotate.cs
2025-08-06 23:18:38 +01:00

16 lines
321 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Akila.FPSFramework
{
public class AutoRotate : MonoBehaviour
{
public Vector3 speed;
private void Update()
{
transform.Rotate(speed * Time.deltaTime * 100, Space.Self);
}
}
}