mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-05 12:52:24 +08:00
28 lines
572 B
C#
28 lines
572 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace UnityExplorer.UI.Main
|
|
{
|
|
public abstract class BaseMenuPage
|
|
{
|
|
public abstract string Name { get; }
|
|
|
|
public GameObject Content;
|
|
public Button RefNavbarButton { get; set; }
|
|
|
|
public bool Enabled
|
|
{
|
|
get => Content?.activeSelf ?? false;
|
|
set => Content?.SetActive(true);
|
|
}
|
|
|
|
|
|
public abstract bool Init();
|
|
public abstract void Update();
|
|
}
|
|
}
|