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); } }
// Use this for initialization void Start() { BelleOwnWindow.SetActive(false); m_instance = this; }