public void OnCLickUnlockConfirm() { if (UnlockFrame != null) { UnlockFrame.SetActive(false); } var e = new PackUnlockOperate(1); EventDispatcher.Instance.DispatchEvent(e); }
public void OnClickCloseUnlock() { if (UnlockFrame != null) { UnlockFrame.SetActive(false); } if (unlockTimerCoroutine != null) { NetManager.Instance.StopCoroutine(unlockTimerCoroutine); unlockTimerCoroutine = null; } var e = new PackUnlockOperate(0); EventDispatcher.Instance.DispatchEvent(e); }