// Start is called before the first frame update void Awake() { allSoundEffects = new Dictionary <SoundEffectType, AudioClip> (); foreach (var sound in UsedSoundEffects) { allSoundEffects.Add(sound.type, sound.audio); } if (instance == null) { instance = this; } }
private void Start() { SoundEffectParticlePrefab = Resources.Load <GameObject>("SoundEffectParticle"); soundEffectsStorage = FindObjectOfType <SoundEffectStorage>(); }