1
0
mirror of https://github.com/Memorix101/UnityXNA/ synced 2024-12-30 15:25:35 +01:00
UnityXNA/Assets/Scripts/AudioSourceController.cs
Memorix101 a92ad739ef added new inputsystem and spritefonts
- Replaced old Unity Input with new InputSystem
- Improved SpriteFonts
2023-04-16 17:46:17 +02:00

13 lines
338 B
C#

using System.Collections;
using UnityEngine;
public class AudioSourceController : MonoBehaviour
{
IEnumerator Start()
{
// Wait for the audio clip to finish playing, then delete the game object
yield return new WaitForSeconds(GetComponent<AudioSource>().clip.length);
Destroy(this.gameObject);
}
}