using UnityEngine; public class RotateObject : MonoBehaviour { [SerializeField] private Vector3 speed; private void LateUpdate() { transform.Rotate(speed, Space.Self); } }
using UnityEngine; public class RotateObject : MonoBehaviour { [SerializeField] private Vector3 speed; private void LateUpdate() { transform.Rotate(speed, Space.Self); } }