HeavenStudioPlus/Assets/Scripts/LevelEditor/SettingsDialog/Tabs/EditorSettings.cs

28 lines
607 B
C#
Raw Normal View History

2022-07-10 21:39:14 +00:00
using UnityEngine;
using UnityEngine.UI;
using TMPro;
namespace HeavenStudio.Editor
{
2022-09-02 00:57:47 +00:00
public class EditorSettings : TabsContent
2022-07-10 21:39:14 +00:00
{
public Toggle cursorCheckbox;
public void OnCursorCheckboxChanged()
{
Editor.instance.isCursorEnabled = cursorCheckbox.isOn;
if (!Editor.instance.fullscreen)
{
GameManager.instance.CursorCam.enabled = Editor.instance.isCursorEnabled;
}
}
2022-09-02 00:57:47 +00:00
public override void OnOpenTab()
{
}
public override void OnCloseTab()
{
}
2022-07-10 21:39:14 +00:00
}
}