using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { public Transform target; public Vector3 axis; public float speed; private void Update() { target?.Rotate(axis * speed * Time.deltaTime, Space.Self); } }