update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user