Exemplo n.º 1
0
    private bool CheckFuncUnlock(string name)
    {
        var list = ConfigDataBase.MenuNavigationConfig.MenuNavigations;

        for (int i = 0; i < list.Count; i++)
        {
            if (name.Equals(list[i].UiRegisterName))
            {
                if (UiNavigationTool.IsUnlockPanel(list[i].Id))
                {
                    return(true);
                }
            }
        }
        return(false);
    }
Exemplo n.º 2
0
 public void StartPreLoad()
 {
     curLoadIndex = 0;
     for (int i = 0; i < cityPreloadList.Count; i++)
     {
         var list = ConfigDataBase.MenuNavigationConfig.MenuNavigations;
         for (int j = 0; j < list.Count; j++)
         {
             if (cityPreloadList[i].uiType.Name.Equals(list[j].UiRegisterName))
             {
                 if (UiNavigationTool.IsUnlockPanel(list[j].Id))
                 {
                     PreloadData data = cityPreloadList[i];
                     data.baseUi = UiManager.Instance.CreateUiNotShow(data.uiType);
                 }
             }
         }
     }
 }