public AudioSELoader CreateSELoader(string name, AudioClip clip, float vol) { AudioSELoader loader = GameObjectUtility.AddChild <AudioSELoader>(name, gameObject); loader.clip = clip; loader.volume = vol; return(loader); }
public AudioSELoader CreateSELoader(string name, float vol) { AudioClip clip = Resources.Load <AudioClip>("Audio/SE/" + name); AudioSELoader loader = GameObjectUtility.AddChild <AudioSELoader>(name, gameObject); loader.clip = clip; loader.volume = vol; return(loader); }