register Resume and Exit entries

This commit is contained in:
in0finite 2020-04-20 00:47:40 +02:00
parent 1185732b28
commit 23cbd6163d

View file

@ -56,6 +56,20 @@ namespace SanAndreasUnity.UI {
void Start () {
this.menuBar.RegisterMenuEntry(new MenuBarEntry
{
name = "Resume",
sortPriority = int.MinValue,
clickAction = () => IsOpened = false,
});
this.menuBar.RegisterMenuEntry(new MenuBarEntry
{
name = "Exit",
sortPriority = int.MaxValue,
clickAction = () => GameManager.ExitApplication (),
});
}
public static PauseMenuWindow[] GetAllWindows() {