ConfigUtil.cs 357 B

12345678910111213
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public static class ConfigUtil
  5. {
  6. public static bool HasLevel(int mapId,int levelId)
  7. {
  8. int tempId = mapId * 10000 + levelId;
  9. Dictionary<string, string> dic = ConfigMgr.Instance.getLine(tempId, Config.LevelCfgName);
  10. return dic != null;
  11. }
  12. }