void Awake() { AS = gameObject.GetComponent<AudioSource>(); // Add all of the clips to the dictionary for (int i = 0; i < Keys.Count; i++) { AudioClip ac = audioClips[i]; string name = Keys[i]; clipDictionary.Add(name, ac); } }