/// <summary> /// 等级描述 /// </summary> void ShowSwordsManLevel() { if (m_SwordsMan == null) { return; } if (m_LabelLevelValue != null) { m_LabelLevelValue.text = m_SwordsMan.Level.ToString();; } if (m_LabelDesc != null) { m_LabelDesc.text = m_SwordsMan.GetTips(); } }
public void UpdateSwordsManInfo() { if (null == m_LableName) { return; } if (null == m_LabelLevelValue) { return; } if (null == m_LabelDesc) { return; } SwordsManContainer Container = GameManager.gameManager.PlayerDataPool.GetSwordsManContainer(m_PackType); if (Container == null) { return; } SwordsMan oSwordsMan = Container.GetSwordsManByGuid(m_SwordsManGuid); if (oSwordsMan == null) { return; } m_LableName.text = oSwordsMan.Name; m_LabelLevelValue.text = oSwordsMan.Level.ToString(); m_LabelDesc.text = oSwordsMan.GetTips(); if (m_SpriteIcon != null) { m_SpriteIcon.spriteName = oSwordsMan.GetIcon(); } if (m_SpriteQuality != null) { m_SpriteQuality.spriteName = SwordsMan.GetQualitySpriteName((SwordsMan.SWORDSMANQUALITY)oSwordsMan.Quality);; } ShowSwordsManExp(); ShowSwordsManEffect(); }