36 lines
968 B
C#
36 lines
968 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.Editor
|
|
{
|
|
public class EditorUIManager : MonoBehaviour
|
|
{
|
|
public MainPage mainPage;
|
|
public Hierarchy hierarchy;
|
|
public Inspector inspector;
|
|
public Timeline timeline;
|
|
|
|
public List<StaticWindow> staticWindows;
|
|
|
|
/// <summary>
|
|
/// 快捷设置所有静态窗口的激活状态
|
|
/// </summary>
|
|
public void SetAllStaticWindowsActive()
|
|
{
|
|
bool anyWindowActive = staticWindows.Any(window => window.gameObject.activeSelf);
|
|
staticWindows.ForEach(window =>
|
|
{
|
|
if (anyWindowActive)
|
|
{
|
|
window.DisableWindow();
|
|
}
|
|
else
|
|
{
|
|
window.EnableWindow();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
} |