14 lines
348 B
C#
14 lines
348 B
C#
|
|
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);
|
||
|
|
}
|
||
|
|
}
|