| using System.Collections; | 
| using System.Collections.Generic; | 
| using UnityEngine; | 
|   | 
| [CreateAssetMenu(menuName = "Config/CloseAllIgnoreWindowConfig")] | 
| public class CloseAllIgnoreWindowConfig : ScriptableObject | 
| { | 
|   | 
|     [SerializeField] List<string> m_Windows; | 
|   | 
|     public bool IsIgnoreWindow(string window) | 
|     { | 
|         return m_Windows.Contains(window); | 
|     } | 
|   | 
|     static CloseAllIgnoreWindowConfig config = null; | 
|     public static bool IsIgnore(string window) | 
|     { | 
|         if (config == null) | 
|         { | 
|             config = BuiltInLoader.LoadScriptableObject<CloseAllIgnoreWindowConfig>("CloseAllIgnoreWindowConfig"); | 
|         } | 
|   | 
|         return config.IsIgnoreWindow(window); | 
|     } | 
|   | 
|     public static void Release() | 
|     { | 
|         config = null; | 
|     } | 
|   | 
| } |