팝업 후 -> 흔들기

This commit is contained in:
Ino 2025-09-10 18:01:36 +09:00
parent f14a5fab7b
commit ebc614d372
1 changed files with 8 additions and 7 deletions

View File

@ -27,6 +27,14 @@ public class ShakePopup : PopupBase
StartCoroutine(coroHide()); StartCoroutine(coroHide());
GameManager.Sound.PlaySFX(ESFXType.Open_Popup); GameManager.Sound.PlaySFX(ESFXType.Open_Popup);
GameManager.Event.InvokeEvent(EEventType.OnSynchronizeGameData);
}
private IEnumerator coroHide()
{
yield return new WaitForSeconds(1.5f);
GameManager.UI.HideTopPopup();
if (GamePanel.Instance.PlayerTurn) if (GamePanel.Instance.PlayerTurn)
{ {
GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true); GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true);
@ -37,12 +45,5 @@ public class ShakePopup : PopupBase
GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true); GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true);
GamePanel.Instance.AI_Bell++; GamePanel.Instance.AI_Bell++;
} }
GameManager.Event.InvokeEvent(EEventType.OnSynchronizeGameData);
}
private IEnumerator coroHide()
{
yield return new WaitForSeconds(1.5f);
GameManager.UI.HideTopPopup();
} }
} }