2026-04-27 디폴트 브금
This commit is contained in:
@@ -7,6 +7,21 @@ public class BGMHud : MonoBehaviour
|
||||
[SerializeField] private GameObject _contentPrefab;
|
||||
|
||||
private BGMBox currentBgm;
|
||||
[SerializeField]private BGMClip DefaultBgm;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
BGMBox[] BGMBoxs = GetComponentsInChildren<BGMBox>(true);
|
||||
|
||||
foreach (BGMBox bgm in BGMBoxs)
|
||||
{
|
||||
if(bgm._bgmClip == DefaultBgm)
|
||||
{
|
||||
bgm.PlayBGM();
|
||||
currentBgm = bgm;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void PlayPickBGM(GameObject buttonObj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user