36 lines
687 B
C#
36 lines
687 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
[CreateAssetMenu(menuName = "Pahlawan Energi/Audio Config")]
|
|
public class SO_AudioConfig : ScriptableObject
|
|
{
|
|
public float bgm_volume;
|
|
public bool isBGMMuted;
|
|
public float sfx_volume;
|
|
public bool isSFXMuted;
|
|
|
|
|
|
public void SetBGMVolume(float value)
|
|
{
|
|
bgm_volume = Mathf.Clamp(value, 0f, 1f);
|
|
}
|
|
|
|
public void SetBGMMuted(bool isMuted)
|
|
{
|
|
isBGMMuted = isMuted;
|
|
}
|
|
|
|
public void SetSFXVolume(float value)
|
|
{
|
|
sfx_volume = Mathf.Clamp(value, 0f, 1f);
|
|
}
|
|
|
|
public void SetSFXMuted(bool isMuted)
|
|
{
|
|
isSFXMuted = isMuted;
|
|
}
|
|
|
|
}
|