Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using UnityEngine;
- namespace MyGame {
- public class SFX : MonoBehaviour {
- [SerializeField]
- private List<SoundFX> SoundFX;
- public static List<SoundFX> Sounds = new List<SoundFX>();
- private void Awake() {
- Sounds = SoundFX;
- }
- }
- [System.Serializable]
- public class SoundFX {
- public string name;
- public AudioClip sfx;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement