Pro_Unit

SoundLibraryExample

Aug 20th, 2021
1,279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. public class SoundLibrary : MonoBehaviour
  2.     {
  3.         public PlayerSounds PlayerSounds;
  4.         public EnemySounds EnemySounds;
  5.     }
  6.  
  7.     [Serializable]
  8.     public class EnemySounds
  9.     {
  10.         public AudioClip Shoot;
  11.         public AudioClip Agro;
  12.     }
  13.  
  14.     [Serializable]
  15.     public class PlayerSounds
  16.     {
  17.         public AudioClip Jump;
  18.         public AudioClip Walk;
  19.         public AudioClip Shoot;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment