Advertisement
RealiteeeyyyyTV

Untitled

Jan 3rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine.UI;
  5.  
  6. public class MusicVolume: MonoBehaviour {
  7.  
  8. public Slider Volume;
  9. public AudioSource myBackground;
  10.  
  11. void Update ()
  12. {
  13. myBackground.volume=Volume.value;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement