Initial commit
This commit is contained in:
13
Assets/Scripts/SpinningWindmill.cs
Normal file
13
Assets/Scripts/SpinningWindmill.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user