private void DisplayBaseInfo() { var config = DungeonConfig.Get(NormalDungeon.Instance.dungeonId); m_DungeonInfo.Display(NormalDungeon.Instance.dungeonId); m_SingleChallenge.SetActive(NormalDungeon.Instance.showSingleEnterance.Fetch()); m_TeamChallenge.SetActive(NormalDungeon.Instance.showMultipEnterance.Fetch()); m_BossModel.Display(config.boss, Vector3.zero, Vector3.zero, Vector3.one); }
public void EneterDungeonGroup(int dungeonId) { if (!DungeonConfig.Has(dungeonId)) { DebugEx.LogFormat("查无此副本,别开玩笑了:{0}", dungeonId); return; } var config = DungeonConfig.Get(dungeonId); }
public int GetDailySurplusTimes(int dungeonId) { if (DungeonConfig.Has(dungeonId)) { return(DungeonConfig.Get(dungeonId).dailyTimes - GetEnterTimes(dungeonId)); } else { return(0); } }
public int GetWeekTotalTimes(int dungeonId) { if (DungeonConfig.Has(dungeonId)) { return(DungeonConfig.Get(dungeonId).weekTimes); } else { return(0); } }
public int GetDailyTotalTimes(int dungeonId) { if (DungeonConfig.Has(dungeonId)) { return(DungeonConfig.Get(dungeonId).dailyTimes); } else { return(0); } }
public int GetWeekSurplusTimes(int dungeonId) { if (DungeonConfig.Has(dungeonId)) { return(DungeonConfig.Get(dungeonId).weekTimes - GetEnterTimes(dungeonId)); } else { return(0); } }
public void OpenWindow(object @object) { this.dungeonId = (int)@object; var config = DungeonConfig.Get(this.dungeonId); bossId.value = config.boss; surplurTime.value = Dungeon.Instance.GetDailySurplusTimes(dungeonId); showSweep.value = Dungeon.Instance.GetDungeonHighestStar(dungeonId) > 0; showSingleEnterance.value = config.type == 1 || config.type == 3; showMultipEnterance.value = config.type == 2 || config.type == 3; Windows.Instance.Open(WindowType.NormalDungeon); }
public void DisplaySurplusTimes(int dungeonId) { var config = DungeonConfig.Get(dungeonId); var surplusTimes = 0; if (config.dailyTimes > 0) { surplusTimes = Dungeon.Instance.GetDailySurplusTimes(dungeonId); } else { surplusTimes = Dungeon.Instance.GetWeekSurplusTimes(dungeonId); } m_SurplusTimes.SetText(surplusTimes); }
private void DisplayBaseInfo(int dungeonId) { var config = DungeonConfig.Get(dungeonId); m_DungeonName.SetLanguage(config.name); m_Introduce.SetLanguage(config.description); m_TimeLimit.SetText(config.timeLimit); m_RecommenLevel.SetText(StringUtil.Contact(config.recommendLevel.x, "--", config.recommendLevel.y)); var items = new List <Item>(); foreach (var reward in config.rewards) { items.Add(new Item() { id = reward.x, count = reward.y }); } m_Rewards.Display(items); }