using UnityEngine; namespace TowerDefense.UI { /// /// A simple component that applies a constant rotation to a transform /// public class Rotator : MonoBehaviour { public Vector3 rotationSpeed; void Update () { transform.localEulerAngles += rotationSpeed; } } }