버그 수정
This commit is contained in:
@@ -8,9 +8,16 @@ public class BGMHud : MonoBehaviour
|
||||
|
||||
private BGMBox currentBgm;
|
||||
[SerializeField] private BGMClip DefaultBgm;
|
||||
[SerializeField, Min(0f)] private float _defaultBgmStartDelay = 5f;
|
||||
|
||||
public void Start()
|
||||
public async void Start()
|
||||
{
|
||||
if (_defaultBgmStartDelay > 0f)
|
||||
await Awaitable.WaitForSecondsAsync(_defaultBgmStartDelay);
|
||||
|
||||
// 지연 도중에 이미 다른 곡이 재생되었으면 디폴트는 건너뜀
|
||||
if (currentBgm != null) return;
|
||||
|
||||
BGMBox[] BGMBoxs = GetComponentsInChildren<BGMBox>(true);
|
||||
|
||||
foreach (BGMBox bgm in BGMBoxs)
|
||||
|
||||
Reference in New Issue
Block a user