update sample
This commit is contained in:
14
Assets/Scenes/SampleCurvedText/Scripts/Rotator.cs
Normal file
14
Assets/Scenes/SampleCurvedText/Scripts/Rotator.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace space.chikalin.textdecal
|
||||
{
|
||||
public class Rotator : MonoBehaviour
|
||||
{
|
||||
[Range(1f, 100f)] public float speed = 30f;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
transform.Rotate(Vector3.up, Time.deltaTime * speed);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user