private void DisplayBaseInfo() { var config = NpcConfig.Get(bossId); m_BossName.SetText(config.name); m_BossLevel.SetText(config.level); var worldBossConfig = WorldBossConfig.Get(bossId); m_BossDescription.SetLanguage(worldBossConfig.name); }
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); }