public static void CreateSoundHolder() { SoundInfo asset = ScriptableObject.CreateInstance <SoundInfo> (); ProjectWindowUtil.CreateAsset(asset, "New " + typeof(SoundInfo).Name + ".asset"); }
public Sound(SoundInfo soundinfo, AudioSource audioSource, AudioSourcePool audioSourcePool) { this.soundInfo = soundinfo; this.audioSource = audioSource; this.audioSourcePool = audioSourcePool; }