| | |
| | | [SerializeField] Image awardStateImg;
|
| | | [SerializeField] Button receiveBtn;
|
| | | [SerializeField] UIEffect awardEffect;
|
| | |
|
| | | [SerializeField] Image arrowTip; //任务提醒箭头
|
| | |
|
| | | RealmModel model { get { return ModelCenter.Instance.GetModel<RealmModel>(); } }
|
| | | EquipModel equipModel { get { return ModelCenter.Instance.GetModel<EquipModel>(); } }
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | | SkyTowerModel skyTowerModel { get { return ModelCenter.Instance.GetModel<SkyTowerModel>(); } }
|
| | | TaskModel taskModel { get { return ModelCenter.Instance.GetModel<TaskModel>(); } }
|
| | |
|
| | |
|
| | | //1 等级达到x级
|
| | | //2 通关x地图x层
|
| | | //3 杀怪x只
|
| | | //4 需要境界丹
|
| | | //5 装备条件
|
| | | //6 挑战心魔
|
| | | //7 主线任务
|
| | | public void Display(int missionID)
|
| | | {
|
| | | var state = model.GetMissionState(PlayerDatas.Instance.baseData.realmLevel, missionID);
|
| | |
| | | {
|
| | | awardEffect.Stop();
|
| | | }
|
| | |
|
| | | arrowTip.SetActive(false);
|
| | |
|
| | | int type = config.TaskType;
|
| | | int curValue = 0;
|
| | |
| | | processText.text = StringUtility.Contact(curValue, "/", maxValue);
|
| | |
|
| | | missionNameText.text = Language.Get("RealmMissionName2", MapConfig.Get(config.NeedValueList[0]).Name, config.NeedValueList[1]);
|
| | |
|
| | | if (state == 0 && PlayerDatas.Instance.baseData.LV < 150)
|
| | | {
|
| | | var skyTowerconfig = SkyTowerConfig.Get(skyTowerModel.currentFloor);
|
| | | if (PlayerDatas.Instance.baseData.LV >= skyTowerconfig.levelLimit &&
|
| | | PlayerDatas.Instance.baseData.FightPoint >= (ulong)NPCExConfig.Get(skyTowerconfig.bossId).SuppressFightPower * GeneralDefine.fightPowerMore)
|
| | | {
|
| | | arrowTip.SetActive(true);
|
| | | }
|
| | | }
|
| | | break;
|
| | | case 3:
|
| | | curValue = model.GetMissionProcess(missionID);
|
| | |
| | | expSlider.value = (float)curValue / 1;
|
| | | processText.text = StringUtility.Contact(curValue, "/", 1);
|
| | | break;
|
| | | case 7:
|
| | | missionNameText.text = Language.Get("RealmMissionName7",
|
| | | TASKINFOConfig.Get(TaskListConfig.Get(config.NeedValueList[0]).TaskName).show_writing);
|
| | |
|
| | | maxValue = TaskListConfig.GetMissionIndex(config.NeedValueList[0]) + 1;
|
| | | curValue = TaskListConfig.GetMissionIndex(taskModel.GetLatestMainTaskId());
|
| | | expSlider.value = (float)curValue / maxValue;
|
| | | processText.text = StringUtility.Contact(curValue, "/", maxValue);
|
| | | break;
|
| | | }
|
| | |
|
| | | itemCell.Init(new ItemCellModel(config.AwardItemList[0][0], false, (ulong)config.AwardItemList[0][1]));
|