2621【前端】法宝、法宝之魂优化(修改法宝魂界面)
| | |
| | | {
|
| | | public class TreasureSoulPattern : MonoBehaviour
|
| | | {
|
| | | [SerializeField] RectTransform m_ContainerBottom;
|
| | | protected TreasureSoulModel model { get { return ModelCenter.Instance.GetModel<TreasureSoulModel>(); } }
|
| | | protected TreasureSpecialData special;
|
| | |
|
| | | public RectTransform bottom
|
| | | {
|
| | | get { return m_ContainerBottom; }
|
| | | }
|
| | |
|
| | | public virtual void Display(int _id)
|
| | | {
|
| | |
| | | {
|
| | | m_TreasureSouls[i].Dispose();
|
| | | m_TreasureSouls[i].gameObject.SetActive(_pattern == i && model.IsGetTreasureSoul(model.selectSoul));
|
| | | if (m_TreasureSouls[i].bottom != null)
|
| | | {
|
| | | m_TreasureSouls[i].bottom.gameObject.SetActive(_pattern == i && model.IsGetTreasureSoul(model.selectSoul));
|
| | | }
|
| | | if (_pattern == i)
|
| | | {
|
| | | m_TreasureSouls[i].Display((int)special.type);
|