bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/DestroyWhenNoAudioPlaying.cs

13 lines
201 B
C#
Raw Permalink Normal View History

2024-02-24 22:40:44 -05:00
using UnityEngine;
public class DestroyWhenNoAudioPlaying : MonoBehaviour
{
private void Update()
{
if ((bool)base.audio && !base.audio.isPlaying)
{
Object.Destroy(base.gameObject);
}
}
}