Advertisement
Guest User

Sound.cs

a guest
Aug 24th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using UnityEngine.Audio;
  2. using UnityEngine;
  3.  
  4. [System.Serializable]
  5. public class Sound {
  6.  
  7.     public string name;
  8.  
  9.     public AudioClip clip;
  10.  
  11.     [Range(0f,2f)]
  12.     public float volume;
  13.     [Range(.1f,3f)]
  14.     public float pitch;
  15.  
  16.     public bool loop;
  17.  
  18.     [HideInInspector]
  19.     public AudioSource source;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement