示例#1
0
    private void ItemClick(GameObject go)
    {
        int id;

        ItemClickGo = go;
        if (m_GoFindIdDic.TryGetValue(go, out id))
        {
            List <Tab_Belle> belles = TableManager.GetBelleByID(id);
            if (belles != null)
            {
                if (BelleData.OwnedBelleMap.ContainsKey(id))
                {
                    if (belles.Count > 0)
                    {
                        Tab_Belle belle = belles[0];
                        BelleInfoWindow.Instance().CurSellectedBelleData = belle;
                        BelleOwnWindow.SetActive(true);
                        BelleOwnWindow belleOwnwindow = BelleOwnWindow.GetComponent <BelleOwnWindow>();
                        if (belleOwnwindow != null)
                        {
                            belleOwnwindow.SetData();
                            belleOwnwindow.SetUpdateEva(true);
                            if (EffectController != null)
                            {
                                EffectController.gameObject.SetActive(false);
                            }
                        }
                    }
                }
                else
                {
                    Tab_Belle belle = belles[0];
                    BelleInfoWindow.Instance().CurSellectedBelleData = belle;
                    BelleUnOwnWindow.SetActive(true);
                    BelleUnOwnWindow belleUnOwnwindow = BelleUnOwnWindow.GetComponent <BelleUnOwnWindow>();
                    if (belleUnOwnwindow != null)
                    {
                        if (EffectController != null)
                        {
                            EffectController.gameObject.SetActive(false);
                        }
                    }
                }
            }
        }
        if (go.name.Equals("10") && BelleController.Instance().FTEIndex == 2)
        {
            BelleController.Instance().DoFTE(3);
        }
    }
示例#2
0
    /// <summary>
    /// 显示美人属性界面
    /// </summary>
    /// <param name="tabBelle"></param>
    /// <param name="isOwn"></param>
    public void ShowBelleInfoWindow(Tab_Belle tabBelle, bool isOwn)
    {
        m_curSelectedBelleData = tabBelle;
        m_unOwnBelleWin.SetActive(!isOwn);
        if (m_unOwnBelleWin.activeSelf)
        {
            BelleUnOwnWindow belleUnOwnWindow = m_unOwnBelleWin.GetComponent <BelleUnOwnWindow>();
            if (belleUnOwnWindow != null)
            {
                belleUnOwnWindow.SetUnOwnBelleInfo();
            }
        }

        m_ownBelleWin.SetActive(isOwn);
        if (m_ownBelleWin.activeSelf)
        {
            BelleOwnWindow belleOwnwindow = m_ownBelleWin.GetComponent <BelleOwnWindow>();
            if (belleOwnwindow != null)
            {
                belleOwnwindow.SetData();
                belleOwnwindow.SetUpdateEva(true);
            }
        }
    }