internal static LayoutCache SelectIDList(int instanceID, bool isWindow)
{
LayoutCache cache;
Dictionary<int, LayoutCache> dictionary = !isWindow ? s_StoredLayouts : s_StoredWindows;
if (!dictionary.TryGetValue(instanceID, out cache))
{
cache = new LayoutCache();
dictionary[instanceID] = cache;
}
current.topLevel = cache.topLevel;
current.layoutGroups = cache.layoutGroups;
current.windows = cache.windows;
return cache;
}