projectEli/Assets/NeoFPS/Samples/Shared/UserInterface/Menus/Options/OptionsMenuPanel.cs

31 lines
511 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
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 ();
}
}