diff --git a/Assets/Scripts/UI/Popup/ShakePopup.cs b/Assets/Scripts/UI/Popup/ShakePopup.cs index 5f911fb..28c4c5e 100644 --- a/Assets/Scripts/UI/Popup/ShakePopup.cs +++ b/Assets/Scripts/UI/Popup/ShakePopup.cs @@ -27,6 +27,14 @@ public class ShakePopup : PopupBase StartCoroutine(coroHide()); 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) { GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true); @@ -37,12 +45,5 @@ public class ShakePopup : PopupBase GamePanel.Instance.EffectPanel.Direct(EEffectDirectType.Bell, true); GamePanel.Instance.AI_Bell++; } - GameManager.Event.InvokeEvent(EEventType.OnSynchronizeGameData); - } - - private IEnumerator coroHide() - { - yield return new WaitForSeconds(1.5f); - GameManager.UI.HideTopPopup(); } }