DO-83 [Feat] 사운드 적용
This commit is contained in:
parent
570961a2b0
commit
14bb076b3b
@ -57,6 +57,8 @@ public class GameManager : Singleton<GameManager>
|
||||
{
|
||||
if (_camera != null)
|
||||
{
|
||||
AudioManager.Instance.PlayErrorSound(); //사운드 추가
|
||||
|
||||
_camera.transform.DOShakePosition(0.5f, 0.5f).OnComplete(() =>
|
||||
{
|
||||
_camera.transform.position = new Vector3(0,0,-10);
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -32,6 +32,12 @@ public class RatingPointsController : MonoBehaviour
|
||||
|
||||
sequence.Append(
|
||||
imageOBject.GetComponent<Transform>().DOLocalRotate(new Vector3(0f, 90f, 0f), flipDuration).SetEase(Ease.InExpo));
|
||||
|
||||
sequence.AppendCallback(() =>
|
||||
{
|
||||
AudioManager.Instance.PlayRatingSound(); //사운드 추가
|
||||
});
|
||||
|
||||
sequence.Append(
|
||||
imageOBject.GetComponent<Transform>().DOLocalRotate(Vector3.zero, flipDuration).SetEase(Ease.OutExpo));
|
||||
sequence.Join(
|
||||
|
Loading…
x
Reference in New Issue
Block a user