Beispiel #1
0
        private void Awake()
        {
            singleton = this;

            source = GetComponent <AudioSource>();

            sounds = new Dictionary <string, AudioClip>()
            {
                { "menuHover", Resources.Load <AudioClip>("Audio/Effects/Pop") }
            };
        }
Beispiel #2
0
 protected override void Awake()
 {
     soundManager = FindObjectOfType <SoundEffectsManager>();
 }