// 设置扩展 public void SetExpand() { UITexture spritet = m_bg.GetComponent <UITexture>(); spritet.mainTexture = UICardBag.GetInstance().m_extendBagTexture; m_bg.SetActive(true); m_headImage.gameObject.SetActive(false); m_level.text = ""; m_defaultHead.gameObject.SetActive(false); // 职业 m_occ.gameObject.SetActive(false); // 星级 m_rarity.gameObject.SetActive(false); //扩容 m_param.m_id = -1; m_param.m_guid.Reset(); m_index = 0; // 表示 不用显示卡牌详情 }
// 设置空 public void SetEmpty() { m_bg.gameObject.SetActive(true); UITexture spritet = m_bg.GetComponent <UITexture>(); spritet.mainTexture = UICardBag.GetInstance().m_gridBgTexture; m_headImage.mainTexture = null; m_level.text = ""; m_level.gameObject.SetActive(false); m_chosen.gameObject.SetActive(false); // 道具ID m_param.m_id = 0; // slotId m_param.m_guid = CSItemGuid.Zero; m_index = 0; // 表示 不用显示卡牌详情 m_love.gameObject.SetActive(false); m_defaultHead.gameObject.SetActive(true); // 职业 m_occ.gameObject.SetActive(false); // 星级 m_rarity.gameObject.SetActive(false); m_tag.spriteName = ""; m_break.gameObject.SetActive(false); }
// 返回 void OnReturn(object sender) { CardUpdateProp.Singleton.ClearUpdateCardData(); //HideWindow(); MainUIManager.Singleton.OnSwitchSingelUI(MainUIManager.EDUITYPE.enCardBag); //CardBag.Singleton.OnShowCardBag(); UICardBag.GetInstance().HideSeleteCardEffect(); }