OldBlueWater/BlueWater/Assets/Distant Lands/Cozy Weather/Contents/Scripts/Modules/CozyDebugModule.cs
2024-01-03 15:34:33 +09:00

73 lines
1.3 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Reflection;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace DistantLands.Cozy
{
[ExecuteAlways]
public class CozyDebugModule : CozyModule
{
// Start is called before the first frame update
void Awake()
{
if (!enabled)
return;
}
}
#if UNITY_EDITOR
[CustomEditor(typeof(CozyDebugModule))]
public class E_CozyDebugModule : E_CozyModule
{
CozyDebugModule t;
void OnEnable()
{
t = (CozyDebugModule)target;
}
public override GUIContent GetGUIContent()
{
return new GUIContent(" Debug", (Texture)Resources.Load("Debug"), "Aids in debugging and testing the COZY system.");
}
public override void OnInspectorGUI()
{
}
public override void OpenDocumentationURL()
{
Application.OpenURL("https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/how-it-works/modules/debug-module");
}
public override void DisplayInCozyWindow()
{
foreach (E_CozyModule module in E_CozyWeather.editors)
{
module.GetDebugInformation();
}
}
}
#endif
}