Ejemplo n.º 1
0
    // init vars
    void Awake()
    {
        // enforce singleton
        if (!inst)
        {
            inst = this;
        }
        else if (inst != this)
        {
            Destroy(this);
        }

        aus = GetComponent <AudioSource>();
        cheer_source.volume = SoundLevels.effects;
        // tracks = Resources.LoadAll<AudioClip>("Background_Music");

        //new_track();
        //debug_track();
    }