BITFALL/Assets/Polaris - Low Poly Ecosystem/Polaris - Low Poly Terrain .../Editor/Scripts/HelpTool/GHelpEditor.cs

36 lines
735 B
C#
Raw Normal View History

2024-03-05 17:34:41 +08:00
#if GRIFFIN
2023-12-30 17:37:48 +08:00
using UnityEditor;
using UnityEngine;
namespace Pinwheel.Griffin.HelpTool
{
public class GHelpEditor : EditorWindow
{
public static GHelpEditor Instance { get; set; }
public static void ShowWindow()
{
GHelpEditor window = EditorWindow.GetWindow<GHelpEditor>();
window.minSize = new Vector2(300, 300);
window.titleContent = new GUIContent("Help");
window.Show();
}
private void OnEnable()
{
Instance = this;
}
private void OnDisable()
{
Instance = null;
}
private void OnGUI()
{
GHelpToolDrawer.DrawGUI();
}
}
}
2024-03-05 17:34:41 +08:00
#endif