using UnityEngine; public class SpinningWindmill : MonoBehaviour { [SerializeField] private float rotationSpeed; [SerializeField] GameObject windmillBlades; void Update() { //transform.Rotate(0f, 0f, rotationSpeed * Time.deltaTime); windmillBlades.transform.Rotate(0f, 0f, rotationSpeed * Time.deltaTime); } }