DO-58 [Fix] 오디오매니저 병합 수정 및 주석 추가
This commit is contained in:
parent
c0d4e19ae1
commit
95eebb41c4
@ -76,18 +76,18 @@ public class AudioManager : Singleton<AudioManager>
|
|||||||
// 클릭 사운드(SFX) 재생
|
// 클릭 사운드(SFX) 재생
|
||||||
public void PlayClickSound()
|
public void PlayClickSound()
|
||||||
{
|
{
|
||||||
if (audioSource != null)
|
if (sfxAudioSource != null)
|
||||||
{
|
{
|
||||||
audioSource.PlayOneShot(clickSound, sfxVolume);
|
sfxAudioSource.PlayOneShot(clickSound, sfxVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 닫기 사운드(SFX) 재생
|
// 닫기 사운드(SFX) 재생
|
||||||
public void PlayCloseSound()
|
public void PlayCloseSound()
|
||||||
{
|
{
|
||||||
if (audioSource != null)
|
if (sfxAudioSource != null)
|
||||||
{
|
{
|
||||||
audioSource.PlayOneShot(closeSound, sfxVolume);
|
sfxAudioSource.PlayOneShot(closeSound, sfxVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,6 +299,7 @@ public class GameLogic : MonoBehaviour
|
|||||||
|
|
||||||
switch (gameType)
|
switch (gameType)
|
||||||
{
|
{
|
||||||
|
// TODO: 현재 싱글 플레이로 바로 넘어가지 않기 때문에 미사용 중
|
||||||
case Enums.GameType.SinglePlay:
|
case Enums.GameType.SinglePlay:
|
||||||
firstPlayerState = new PlayerState(true);
|
firstPlayerState = new PlayerState(true);
|
||||||
secondPlayerState = new AIState();
|
secondPlayerState = new AIState();
|
||||||
@ -330,6 +331,8 @@ public class GameLogic : MonoBehaviour
|
|||||||
case Constants.MultiplayManagerState.JoinRoom:
|
case Constants.MultiplayManagerState.JoinRoom:
|
||||||
Debug.Log("## Join Room");
|
Debug.Log("## Join Room");
|
||||||
var joinRoomData = data as JoinRoomData;
|
var joinRoomData = data as JoinRoomData;
|
||||||
|
|
||||||
|
// TODO: 응답값 없을 때 서버에서 다시 받아오기 or AI 플레이로 넘기는 처리 필요
|
||||||
if (joinRoomData == null)
|
if (joinRoomData == null)
|
||||||
{
|
{
|
||||||
Debug.Log("Join Room 응답값이 null 입니다");
|
Debug.Log("Join Room 응답값이 null 입니다");
|
||||||
@ -367,6 +370,8 @@ public class GameLogic : MonoBehaviour
|
|||||||
case Constants.MultiplayManagerState.StartGame:
|
case Constants.MultiplayManagerState.StartGame:
|
||||||
Debug.Log("## Start Game");
|
Debug.Log("## Start Game");
|
||||||
var startGameData = data as StartGameData;
|
var startGameData = data as StartGameData;
|
||||||
|
|
||||||
|
// TODO: 응답값 없을 때 서버에서 다시 받아오기 or AI 플레이로 넘기는 처리 필요
|
||||||
if (startGameData == null)
|
if (startGameData == null)
|
||||||
{
|
{
|
||||||
Debug.Log("Start Game 응답값이 null 입니다");
|
Debug.Log("Start Game 응답값이 null 입니다");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user