Esempio n. 1
0
        //status 1 一级界面 2 二级界面 3 锁住 4 隐藏光圈
        private IEnumerator HandleOpenViewCoroutine(Observers.Interfaces.INotification note)
        {
            yield return(null);

            SoftGuideInfo info;
            Transform     tran = (note.Body as GameObject).transform;

            for (int i = 0, count = _currentGuideList.Count; i < count; i++)
            {
                info = _currentGuideList[i];
                if (note.Name.Equals(info.firstViewPath) && !info.isTipOver)
                {
                    CreateSoftEffectTip(tran.Find(info.firstButtonPath) as RectTransform, info.id, SoftGuideView.StatusType.FirstView);
                }
                else if (note.Name.Equals(info.SecondViewPath) && !info.isTipOver)
                {
                    CreateSoftEffectTip(tran.Find(info.SecondButtonPath) as RectTransform, info.id, SoftGuideView.StatusType.SecondView);
                }
            }
            foreach (var value in _guideInfoDictionary)
            {
                if (note.Name.Equals(value.Value.firstViewPath) && !value.Value.hasSecondView)
                {
                    CreateSoftEffectTip(tran.Find(value.Value.firstButtonPath) as RectTransform, value.Value.id, SoftGuideView.StatusType.Lock);
                    // Debugger.Log("[Soft Guide]lock button :{0},functionId:{1}", value.Value.firstButtonPath, value.Value.id);
                }
                else if (note.Name.Equals(value.Value.SecondViewPath))
                {
                    CreateSoftEffectTip(tran.Find(value.Value.SecondButtonPath) as RectTransform, value.Value.id, SoftGuideView.StatusType.Lock);
                    //Debugger.Log("[Soft Guide]lock button :{0},functionId:{1}", value.Value.SecondButtonPath, value.Value.id);
                }
            }
        }
Esempio n. 2
0
 private bool Observer_ViewOpen_handler(Observers.Interfaces.INotification note)
 {
     if ("open".Equals(note.Type))
     {
         StartCoroutine(HandleOpenViewCoroutine(note));
     }
     else if ("close".Equals(note.Type) && note.Name.Equals("ui/main/main_view"))
     {
         FunctionOpenView.Close();
     }
     return(true);
 }