public void init(string path, float gap) { audioSource.clip = ResourceInterface.LoadAudio(path); audioSource.Play(); startPlay = true; audioSource.volume = gap; }
public void PlaySE(string sePath, float gap) { GameObject go = ResourceInterface.InstantiateGO("SEPlayer", this.transform); go.GetComponent <SEPlayer>().init(audioDir + sePath, gap); }
public void init(string path) { audioSource.clip = ResourceInterface.LoadAudio(path); audioSource.Play(); startPlay = true; }