diff --git a/Assets/Script/Game/GameManager.cs b/Assets/Script/Game/GameManager.cs index d0e27fb..bdd56e4 100644 --- a/Assets/Script/Game/GameManager.cs +++ b/Assets/Script/Game/GameManager.cs @@ -57,6 +57,8 @@ public class GameManager : Singleton { if (_camera != null) { + AudioManager.Instance.PlayErrorSound(); //사운드 추가 + _camera.transform.DOShakePosition(0.5f, 0.5f).OnComplete(() => { _camera.transform.position = new Vector3(0,0,-10); diff --git a/Assets/Script/Game/GameUtility/GameRoutine.cs b/Assets/Script/Game/GameUtility/GameRoutine.cs index f8f4b54..9668342 100644 --- a/Assets/Script/Game/GameUtility/GameRoutine.cs +++ b/Assets/Script/Game/GameUtility/GameRoutine.cs @@ -36,6 +36,8 @@ public partial class GameLogic { if (_board[row, col] != Enums.PlayerType.None) return; + AudioManager.Instance.PlayStoneSound(); //사운드 추가 + switch (playerType) { case Enums.PlayerType.PlayerA: diff --git a/Assets/Script/UI/Effect/DrawEffectController.cs b/Assets/Script/UI/Effect/DrawEffectController.cs index 087645c..1b083eb 100644 --- a/Assets/Script/UI/Effect/DrawEffectController.cs +++ b/Assets/Script/UI/Effect/DrawEffectController.cs @@ -14,6 +14,8 @@ public class DrawEffectController : EffectController public override void ShowEffect(OnEffectPanelEnded onEffectPanelEnd) { + AudioManager.Instance.PlayDrawSound(); //사운드 추가 + gameObject.SetActive(true); cancellationTokenSource = new CancellationTokenSource(); onEffectPanelEnded = onEffectPanelEnd; diff --git a/Assets/Script/UI/Effect/LoseEffectController.cs b/Assets/Script/UI/Effect/LoseEffectController.cs index e20cce3..7c15b13 100644 --- a/Assets/Script/UI/Effect/LoseEffectController.cs +++ b/Assets/Script/UI/Effect/LoseEffectController.cs @@ -14,6 +14,8 @@ public class LoseEffectController : EffectController public override void ShowEffect(OnEffectPanelEnded onEffectPanelEnd) { + AudioManager.Instance.PlayLoseSound(); //사운드 추가 + gameObject.SetActive(true); cancellationTokenSource = new CancellationTokenSource(); onEffectPanelEnded = onEffectPanelEnd; diff --git a/Assets/Script/UI/Effect/RatingDownEffectController.cs b/Assets/Script/UI/Effect/RatingDownEffectController.cs index bf4c9b1..1aded72 100644 --- a/Assets/Script/UI/Effect/RatingDownEffectController.cs +++ b/Assets/Script/UI/Effect/RatingDownEffectController.cs @@ -14,6 +14,8 @@ public class RatingDownEffectController : EffectController public override void ShowEffect(OnEffectPanelEnded onEffectPanelEnd) { + AudioManager.Instance.PlayRatingDownSound(); //사운드 추가 + gameObject.SetActive(true); cancellationTokenSource = new CancellationTokenSource(); onEffectPanelEnded = onEffectPanelEnd; diff --git a/Assets/Script/UI/Effect/RatingUpEffectController.cs b/Assets/Script/UI/Effect/RatingUpEffectController.cs index afd412d..b3a088c 100644 --- a/Assets/Script/UI/Effect/RatingUpEffectController.cs +++ b/Assets/Script/UI/Effect/RatingUpEffectController.cs @@ -16,6 +16,8 @@ public class RatingUpEffectController : EffectController public override void ShowEffect(OnEffectPanelEnded onEffectPanelEnd) { + AudioManager.Instance.PlayRatingUpSound(); //사운드 추가 + gameObject.SetActive(true); cancellationTokenSource = new CancellationTokenSource(); onEffectPanelEnded = onEffectPanelEnd; diff --git a/Assets/Script/UI/Effect/WinEffectController.cs b/Assets/Script/UI/Effect/WinEffectController.cs index 1948fc9..9ec5f96 100644 --- a/Assets/Script/UI/Effect/WinEffectController.cs +++ b/Assets/Script/UI/Effect/WinEffectController.cs @@ -16,6 +16,8 @@ public class WinEffectController : EffectController public override void ShowEffect(OnEffectPanelEnded onEffectPanelEnd) { + AudioManager.Instance.PlayWinSound(); //사운드 추가 + gameObject.SetActive(true); cancellationTokenSource = new CancellationTokenSource(); onEffectPanelEnded = onEffectPanelEnd; diff --git a/Assets/Script/UI/PanelChildController/RatingPointsController.cs b/Assets/Script/UI/PanelChildController/RatingPointsController.cs index 24483f8..6843d14 100644 --- a/Assets/Script/UI/PanelChildController/RatingPointsController.cs +++ b/Assets/Script/UI/PanelChildController/RatingPointsController.cs @@ -32,6 +32,12 @@ public class RatingPointsController : MonoBehaviour sequence.Append( imageOBject.GetComponent().DOLocalRotate(new Vector3(0f, 90f, 0f), flipDuration).SetEase(Ease.InExpo)); + + sequence.AppendCallback(() => + { + AudioManager.Instance.PlayRatingSound(); //사운드 추가 + }); + sequence.Append( imageOBject.GetComponent().DOLocalRotate(Vector3.zero, flipDuration).SetEase(Ease.OutExpo)); sequence.Join(