mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
13 lines
270 B
C#
13 lines
270 B
C#
using UnityEngine;
|
|
|
|
namespace Spine.Unity.Examples {
|
|
public class Rotator : MonoBehaviour {
|
|
public Vector3 direction = new Vector3(0, 0, 1f);
|
|
public float speed = 1f;
|
|
|
|
void Update () {
|
|
transform.Rotate(direction * (speed * Time.deltaTime * 100f));
|
|
}
|
|
}
|
|
}
|