23 lines
395 B
C#
23 lines
395 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class AudioVolume : MonoBehaviour
|
|
{
|
|
|
|
|
|
AudioSource source;
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
source = GetComponent<AudioSource>();
|
|
}
|
|
|
|
public void SetVolume(float value)
|
|
{
|
|
source.volume = value;
|
|
}
|
|
|
|
|
|
}
|