using System.Collections; using System.Collections.Generic; using UnityEngine; public class RotateSelf : MonoBehaviour { private float speed=50; void Update() { transform.Rotate(Vector3.forward* speed, Space.Self); } }