Example #1
0
 public Sound(SoundInfo soundinfo, AudioSource audioSource, AudioSourcePool audioSourcePool)
 {
     this.soundInfo       = soundinfo;
     this.audioSource     = audioSource;
     this.audioSourcePool = audioSourcePool;
 }
Example #2
0
        public static void CreateSoundHolder()
        {
            SoundInfo asset = ScriptableObject.CreateInstance <SoundInfo> ();

            ProjectWindowUtil.CreateAsset(asset, "New " + typeof(SoundInfo).Name + ".asset");
        }