Gave sound objects a little more functionality

This commit is contained in:
Slaith
2022-03-06 19:56:45 -08:00
parent c4b2ea97fd
commit 2d328229c9
2 changed files with 16 additions and 3 deletions

View File

@ -70,7 +70,13 @@ namespace RhythmHeavenMania.Util
IEnumerator NotRelyOnBeatSound()
{
yield return new WaitForSeconds(clip.length);
Destroy(this.gameObject);
Delete();
}
public void Delete()
{
GameManager.instance.SoundObjects.Remove(gameObject);
Destroy(gameObject);
}
}
}