using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
namespace Snxxz.UI
|
{
|
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)
|
{
|
model.TryGetTreasureSoul(_id, out special);
|
model.treasureSoulEvent -= TreasurePrivilegeUpdateEvent;
|
model.treasureSoulEvent += TreasurePrivilegeUpdateEvent;
|
}
|
|
protected virtual void TreasurePrivilegeUpdateEvent(int _id)
|
{
|
|
}
|
|
public virtual void Dispose()
|
{
|
model.treasureSoulEvent -= TreasurePrivilegeUpdateEvent;
|
}
|
}
|
}
|