| | |
| | | [SerializeField] ScrollerController m_TowerBehaviour;
|
| | | [SerializeField] List<ItemCell> items;
|
| | | [SerializeField] TextEx m_LevelLimit;
|
| | | [SerializeField] TextEx m_FightPower;
|
| | | [SerializeField] Button m_Challenge;
|
| | | [SerializeField] TextEx m_TopNow;
|
| | | [SerializeField] TextEx m_TowerName;
|
| | |
| | | m_Close.AddListener(CloseClick);
|
| | | }
|
| | |
|
| | | int lastLargeRealm = 0;
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | lastLargeRealm = RealmConfig.Get(RealmTowerConfig.Get(realmModel.selectFloorID).NeedRealmLV).LvLarge;
|
| | | m_TowerBehaviour.OnRefreshCell += RefreshCell;
|
| | | //realmModel.OnTowerPassEvent += OnTowerPassEvent;
|
| | | realmModel.OnFlashOverEvent += OnFlashOverEvent;
|
| | |
| | | m_Challenge.SetActive(realmModel.currentFloor == realmModel.selectFloorID);
|
| | | m_TopNow.SetActive(realmModel.currentFloor != realmModel.selectFloorID);
|
| | | m_TowerName.text = Language.Get("RealmTower4", RealmConfig.Get(RealmConfig.Get(RealmTowerConfig.Get(realmModel.selectFloorID).NeedRealmLV).LvLarge).Name);
|
| | | |
| | |
|
| | | var fightPower = NPCExConfig.Get(config.BossID).SuppressFightPower;
|
| | |
|
| | | m_FightPower.text = fightPower.ToString();
|
| | | m_FightPower.colorType = PlayerDatas.Instance.baseData.FightPoint >= (ulong)fightPower ? TextColType.Green : TextColType.Red;
|
| | |
|
| | |
|
| | | ShowBtns();
|
| | | }
|
| | |
|
| | |
| | | if (realmModel.currentFloor <= 20)
|
| | | return count;
|
| | |
|
| | | var floors = RealmTowerConfig.GetFloorsByFloorID(realmModel.currentFloor);
|
| | | if (floors == null)
|
| | | return count;
|
| | |
|
| | |
|
| | | for (int i = 0; i < GeneralDefine.flashKillMaxCount; i++)
|
| | | {
|
| | | var config = RealmTowerConfig.Get(realmModel.currentFloor + i);
|
| | | if (config == null)
|
| | | break;
|
| | |
|
| | | if (!floors.Contains(realmModel.currentFloor + i))
|
| | | break;
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.realmLevel < config.NeedRealmLV)
|
| | |
| | | void OnTowerPassEvent()
|
| | | {
|
| | | Display();
|
| | | m_TowerBehaviour.m_Scorller.RefreshActiveCellViews();
|
| | | if (lastLargeRealm != RealmConfig.Get(RealmTowerConfig.Get(realmModel.selectFloorID).NeedRealmLV).LvLarge)
|
| | | {
|
| | | lastLargeRealm = RealmConfig.Get(RealmTowerConfig.Get(realmModel.selectFloorID).NeedRealmLV).LvLarge;
|
| | | OnCreateScroller();
|
| | | }
|
| | | else
|
| | | { |
| | | m_TowerBehaviour.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|