Esempio n. 1
0
 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);
    }
Esempio n. 3
0
 public void init(string path)
 {
     audioSource.clip = ResourceInterface.LoadAudio(path);
     audioSource.Play();
     startPlay = true;
 }