RotateSprite.cs 246 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 using UnityEngine; using System.Collections; public class RotateSprite : MonoBehaviour { private float count = 0; void Update () { count = 2f + (count % 360); transform.rotation = Quaternion.AngleAxis(count, new Vector3(0, 0, 1)); } }