팝업 후 -> 흔들기
This commit is contained in:
parent
f14a5fab7b
commit
ebc614d372
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue