_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Scene_main/main_BGM.cs
2024-12-09 16:54:32 +08:00

23 lines
527 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class main_BGM : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
if (UIBtnMusic.instance.audioSource.clip!= UIBtnMusic.instance.BGMClickClip_main)//如果不是主界面音乐则改为主界面音乐
{
UIBtnMusic.instance.PlayBGMClickSound(UIBtnMusic.instance.BGMClickClip_main);
}
}
// Update is called once per frame
void Update()
{
}
}