Пример #1
0
        public override IEnumerator OnAddToStack()
        {
            LTRedPointSystem.Instance.AddRedPointNodeCallBack(RedPointConst.otherSetting, FrameRPFunc);
            yield return(base.OnAddToStack());

            if (HeadFrameEvent.InitEvent != null)
            {
                HeadFrameEvent.InitEvent();
            }
        }
Пример #2
0
        public void OnBtnClick()
        {
            string temp = string.Format("{0}_{1}", ItemData.id, ItemData.num);

            if (RedPoint.activeSelf && !LTGameSettingManager.Instance.HasFrame(temp))
            {
                LTGameSettingManager.Instance.ClickFrame(temp);
            }
            if (ItemData == null || isCurSelect())
            {
                return;
            }

            if (HeadFrameEvent.SelectEvent != null)
            {
                HeadFrameEvent.SelectEvent(ItemData.id, ItemData.num, isLock());
            }
        }