I want to lower the volume of my BGM that is on DontDestroyOnLoad on the next scene on Start without a slider?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BG : MonoBehaviour
{
private static BG instance = null;
public static BG Instance
{
get { return instance; }
}
private void Awake()
{
if(instance != null && instance != this)
{
Destroy(this.gameObject);
return;
}
else
{
instance = this;
}
DontDestroyOnLoad(this.gameObject);
}
}