1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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));
- }
- }
- }
|