This commit is contained in:
manhduyhoang90
2026-05-26 09:46:57 +07:00
commit 167a617e09
1758 changed files with 1757605 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
namespace Unity.FPS.Game
{
public class ConstantRotation : MonoBehaviour
{
[Tooltip("Rotation angle per second")] public float RotatingSpeed = 360f;
void Update()
{
// Handle rotating
transform.Rotate(Vector3.up, RotatingSpeed * Time.deltaTime, Space.Self);
}
}
}