projectEli/Assets/NeoFPS/Samples/Shared/UserInterface/Menus/Options/OptionsMenuPanel.cs
2022-11-06 20:28:33 -05:00

31 lines
511 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace NeoFPS.Samples
{
public abstract class OptionsMenuPanel : MenuPanel
{
public override void Show ()
{
base.Show ();
ResetOptions ();
}
public override void Hide ()
{
SaveOptions ();
base.Hide ();
}
public void Save ()
{
SaveOptions ();
}
protected abstract void SaveOptions ();
protected abstract void ResetOptions ();
}
}