Created
June 6, 2018 05:37
-
-
Save walkies/2e169537c391fe68f3cc48f1726e6133 to your computer and use it in GitHub Desktop.
Volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class Volume : MonoBehaviour | |
{ | |
public Slider volumeSlider; | |
public AudioSource volumeAudio; | |
public AudioSource menubong; | |
public void VolumeController() | |
{ | |
volumeAudio.volume = volumeSlider.value; | |
} | |
public void Menubong() | |
{ | |
menubong.Play(); | |
menubong.pitch++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment