Proper namespaces

This commit is contained in:
Starpelly
2021-12-20 20:10:49 -05:00
parent 33bd99bbc1
commit 0b383940ac
45 changed files with 1364 additions and 1264 deletions

View File

@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace RhythmHeavenMania.Util
{
public class Sound : MonoBehaviour
{
public AudioClip clip;
public float pitch;
private AudioSource audioSource;
private void Start()
{
audioSource = GetComponent<AudioSource>();
audioSource.PlayOneShot(clip);
StartCoroutine(play());
}
private IEnumerator play()
{
yield return new WaitForSeconds(clip.length);
Destroy(this.gameObject);
}
}
}