Do-83 [Style] 주석 정리
This commit is contained in:
parent
9d03e2a93f
commit
f0714052dd
@ -21,7 +21,7 @@ public class AudioManager : Singleton<AudioManager>
|
|||||||
|
|
||||||
protected override void Awake()
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
base.Awake(); // 부모 클래스의 Awake 호출
|
base.Awake();
|
||||||
|
|
||||||
// BGM과 SFX를 위한 별도의 AudioSource 생성
|
// BGM과 SFX를 위한 별도의 AudioSource 생성
|
||||||
bgmAudioSource = gameObject.AddComponent<AudioSource>();
|
bgmAudioSource = gameObject.AddComponent<AudioSource>();
|
||||||
@ -69,9 +69,9 @@ public class AudioManager : Singleton<AudioManager>
|
|||||||
if (bgmAudioSource != null && mainBgm != null && !bgmAudioSource.isPlaying)
|
if (bgmAudioSource != null && mainBgm != null && !bgmAudioSource.isPlaying)
|
||||||
{
|
{
|
||||||
bgmAudioSource.clip = mainBgm;
|
bgmAudioSource.clip = mainBgm;
|
||||||
bgmAudioSource.loop = true; // BGM을 반복 재생
|
bgmAudioSource.loop = true;
|
||||||
bgmAudioSource.volume = 0.1f; // BGM 볼륨 설정
|
bgmAudioSource.volume = 0.1f;
|
||||||
bgmAudioSource.Play(); // BGM 재생
|
bgmAudioSource.Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,9 +82,9 @@ public class AudioManager : Singleton<AudioManager>
|
|||||||
if (bgmAudioSource != null && gameBgm != null && !bgmAudioSource.isPlaying)
|
if (bgmAudioSource != null && gameBgm != null && !bgmAudioSource.isPlaying)
|
||||||
{
|
{
|
||||||
bgmAudioSource.clip = gameBgm;
|
bgmAudioSource.clip = gameBgm;
|
||||||
bgmAudioSource.loop = true; // BGM을 반복 재생
|
bgmAudioSource.loop = true;
|
||||||
bgmAudioSource.volume = 0.1f; // BGM 볼륨 설정
|
bgmAudioSource.volume = 0.1f;
|
||||||
bgmAudioSource.Play(); // 게임 BGM 재생
|
bgmAudioSource.Play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,11 +111,10 @@ public class AudioManager : Singleton<AudioManager>
|
|||||||
{
|
{
|
||||||
if (bgmAudioSource != null && bgmAudioSource.isPlaying)
|
if (bgmAudioSource != null && bgmAudioSource.isPlaying)
|
||||||
{
|
{
|
||||||
bgmAudioSource.Stop(); // 게임용 BGM을 멈춤
|
bgmAudioSource.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 씬이 로드될 때마다 호출되는 OnSceneLoaded 메서드
|
|
||||||
protected override void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
protected override void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||||
{
|
{
|
||||||
PlayBGM();
|
PlayBGM();
|
||||||
|
@ -130,8 +130,6 @@ public class CoinsPanelController : MonoBehaviour
|
|||||||
/// <param name="action"></param>
|
/// <param name="action"></param>
|
||||||
public void RemoveCoins(Action action)
|
public void RemoveCoins(Action action)
|
||||||
{
|
{
|
||||||
// --------------------------------------------------------------------
|
|
||||||
// TODO : 임시 게임 매니저 혹은 별도 관리자가 관리해야함.
|
|
||||||
if (_coinsCount < 100)
|
if (_coinsCount < 100)
|
||||||
{
|
{
|
||||||
EmptyCoins();
|
EmptyCoins();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user