using UnityEngine; public class Rotate2D : MonoBehaviour { public float z = 1.5f; void FixedUpdate() { transform.Rotate(new Vector3(0, 0, z)); } }