| | |
| | | [SerializeField] protected TextEx m_BossLevel;
|
| | | [SerializeField] protected RectTransform m_RealmContainer;
|
| | | [SerializeField] protected Image m_Realm;
|
| | | [SerializeField] protected RectTransform m_UnLockCondition;
|
| | | [SerializeField] protected Image m_UnLockRealm;
|
| | | [SerializeField] protected TimerBehaviour m_CoolDown;
|
| | | [SerializeField] protected Transform m_RefreshAtOnce;
|
| | | [SerializeField] protected Material m_NormalMaterial;
|
| | |
| | |
|
| | | protected virtual bool isRebornRightNow {
|
| | | get {
|
| | | FindPreciousModel.BossInfo bossInfo = null;
|
| | | if (findPreciousModel.TryGetBossInfo(bossId, out bossInfo))
|
| | | {
|
| | | return !findPreciousModel.IsBossAlive(bossId) && TimeUtility.ServerNow > bossInfo.refreshTime;
|
| | | }
|
| | | else
|
| | | if (!findPreciousModel.IsBossUnlock(bossId))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | | FindPreciousModel.BossInfo bossInfo = null;
|
| | | if (!findPreciousModel.TryGetBossInfo(bossId, out bossInfo))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | | return !findPreciousModel.IsBossAlive(bossId) && TimeUtility.ServerNow > bossInfo.refreshTime;
|
| | | }
|
| | | }
|
| | |
|
| | | protected virtual bool isUnLocked {
|
| | | get { return true; }
|
| | | get { return findPreciousModel.IsBossUnlock(bossId); }
|
| | | }
|
| | |
|
| | | protected FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } }
|
| | |
| | | findPreciousModel.bossInfoUpdateEvent -= OnBossInfoUpdate;
|
| | | }
|
| | |
|
| | | protected virtual void DrawBossBaseInfo(string _icon, string _name, int _level, int _realm)
|
| | | protected virtual void DrawBossBaseInfo(string icon, string name, int level, int realm)
|
| | | {
|
| | | m_Portrait.SetSprite(_icon);
|
| | | m_Portrait.SetSprite(icon);
|
| | | m_Portrait.SetNativeSize();
|
| | | m_BossName.text = _name;
|
| | | m_BossLevel.text = Language.Get("Z1024", _level);
|
| | | this.m_BossName.text = name;
|
| | | m_BossLevel.text = Language.Get("Z1024", level);
|
| | |
|
| | | if (m_Realm != null && m_RealmContainer != null)
|
| | | m_RealmContainer.gameObject.SetActive(isUnLocked);
|
| | | m_UnLockCondition.gameObject.SetActive(!isUnLocked);
|
| | | if (!isUnLocked)
|
| | | {
|
| | | if (_realm > 0 && RealmConfig.Has(_realm))
|
| | | var unLockRealm = findPreciousModel.GetBossUnLockRealm(bossId);
|
| | | var config = RealmConfig.Get(unLockRealm);
|
| | | m_UnLockRealm.SetSprite(config.Img);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (m_Realm != null && m_RealmContainer != null)
|
| | | {
|
| | | m_RealmContainer.gameObject.SetActive(true);
|
| | | var realmConfig = RealmConfig.Get(_realm);
|
| | | if (realmConfig != null)
|
| | | if (realm > 0 && RealmConfig.Has(realm))
|
| | | {
|
| | | m_Realm.SetSprite(realmConfig.Img);
|
| | | m_RealmContainer.gameObject.SetActive(true);
|
| | | var realmConfig = RealmConfig.Get(realm);
|
| | | if (realmConfig != null)
|
| | | {
|
| | | m_Realm.SetSprite(realmConfig.Img);
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | m_RealmContainer.gameObject.SetActive(false);
|
| | | else
|
| | | {
|
| | | m_RealmContainer.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | m_Selected.gameObject.SetActive(selected);
|
| | | //m_BackGround.SetSprite(selected ? "DemonJarSelectFrame" : "DemonJarNormalFrame");
|
| | |
|
| | | var fontPattern = string.Empty;
|
| | | switch (_state)
|