Example #1
0
        public void OnCLickUnlockConfirm()
        {
            if (UnlockFrame != null)
            {
                UnlockFrame.SetActive(false);
            }
            var e = new PackUnlockOperate(1);

            EventDispatcher.Instance.DispatchEvent(e);
        }
Example #2
0
        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);
        }