public static void CreateSoundHolder()
        {
            SoundInfo asset = ScriptableObject.CreateInstance <SoundInfo> ();

            ProjectWindowUtil.CreateAsset(asset, "New " + typeof(SoundInfo).Name + ".asset");
        }
Exemple #2
0
 public Sound(SoundInfo soundinfo, AudioSource audioSource, AudioSourcePool audioSourcePool)
 {
     this.soundInfo       = soundinfo;
     this.audioSource     = audioSource;
     this.audioSourcePool = audioSourcePool;
 }