Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3.  
  4. namespace MyGame {
  5.     public class SFX : MonoBehaviour {
  6.         [SerializeField]
  7.         private List<SoundFX> SoundFX;
  8.         public static List<SoundFX> Sounds = new List<SoundFX>();
  9.         private void Awake() {
  10.             Sounds = SoundFX;
  11.         }
  12.     }
  13.  
  14.     [System.Serializable]
  15.     public class SoundFX {
  16.         public string name;
  17.         public AudioClip sfx;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement