26 lines
692 B
C#
26 lines
692 B
C#
using Ichni.UI;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Ichni.Menu
|
|
{
|
|
public class SettingsUIPage : UIPageBase
|
|
{
|
|
GameSettings gameSettings => SettingsManager.instance.gameSettings;
|
|
|
|
public Button backButton;
|
|
public SettingsWindowController settingsWindowController;
|
|
public OffsetEditor offsetEditor;
|
|
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
|
|
backButton.onClick.AddListener(() =>
|
|
{
|
|
FadeOut();
|
|
SettingsManager.instance.SaveGameSettings();
|
|
MenuManager.instance.chapterSelectionUIPage.FadeIn();
|
|
});
|
|
}
|
|
}
|
|
} |