using System.Collections.Generic; 
 | 
using System.Linq; 
 | 
using UnityEngine; 
 | 
using System; 
 | 
  
 | 
/// <summary> 
 | 
/// 关联界面索引表,用于获取途径,富文本打开界面等情况 
 | 
/// </summary> 
 | 
public class UIJumpManager : GameSystemManager<UIJumpManager> 
 | 
{ 
 | 
  
 | 
  
 | 
    public override void Init() 
 | 
    { 
 | 
    } 
 | 
  
 | 
    public bool CanOpenWin(int winID, bool showTip = false) 
 | 
    { 
 | 
        var config = WindowSearchConfig.Get(winID); 
 | 
        if (config == null) 
 | 
        { 
 | 
            return false; 
 | 
        } 
 | 
        if (config.FuncID !=0 && !FuncOpen.Instance.IsFuncOpen(config.FuncID, showTip)) 
 | 
        { 
 | 
            return false; 
 | 
        } 
 | 
  
 | 
        //活动后续补充 
 | 
        return true; 
 | 
    } 
 | 
  
 | 
    public void OpenWindow(int winID, bool showTip = true) 
 | 
    { 
 | 
        if (!CanOpenWin(winID, showTip)) 
 | 
        { 
 | 
            return; 
 | 
        } 
 | 
        var config = WindowSearchConfig.Get(winID); 
 | 
        UIManager.Instance.OpenWindow(config.WinName, config.TabIndex); 
 | 
    } 
 | 
} 
 |