Guest User

Untitled

a guest
Aug 4th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1.     [SerializeField] private AudioClip sound1;
  2.     [SerializeField] private AudioClip sound2;
  3.  
  4.     private int currentAudioClipInt = 1;
  5.  
  6.     audioSource.PlayOneShot(sound1, 1f);
  7.     audioSource.PlayOneShot("sound" + currentAudioClipInt), 1f);
Advertisement
Add Comment
Please, Sign In to add comment