Esempio n. 1
0
    public AudioSELoader CreateSELoader(string name, AudioClip clip, float vol)
    {
        AudioSELoader loader = GameObjectUtility.AddChild <AudioSELoader>(name, gameObject);

        loader.clip   = clip;
        loader.volume = vol;
        return(loader);
    }
Esempio n. 2
0
    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);
    }