18 lines
391 B
C#
18 lines
391 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
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);
|
|
}
|
|
}
|
|
}
|