bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/DestroyWhenNoAudioPlaying.cs
2024-02-24 22:40:44 -05:00

12 lines
201 B
C#

using UnityEngine;
public class DestroyWhenNoAudioPlaying : MonoBehaviour
{
private void Update()
{
if ((bool)base.audio && !base.audio.isPlaying)
{
Object.Destroy(base.gameObject);
}
}
}