Quantum-Engineering/TurbineImpeller.cs
2020-09-03 03:09:26 -04:00

16 lines
331 B
C#

using UnityEngine;
public class TurbineImpeller : MonoBehaviour
{
public GameObject turbine;
// Update is called once per frame
void Update()
{
if (turbine.GetComponent<AudioSource>().isPlaying == true)
{
transform.Rotate(-Vector3.forward * 600 * Time.deltaTime);
}
}
}