rename Model folder

This commit is contained in:
Sinai
2021-04-16 04:33:42 +10:00
parent c1d3aab8e3
commit c8a64c39b1
2 changed files with 0 additions and 0 deletions

27
src/UI/Models/UIModel.cs Normal file
View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace UnityExplorer.UI.Models
{
public abstract class UIModel
{
public abstract GameObject UIRoot { get; }
public bool Visible
{
get => UIRoot && UIRoot.activeInHierarchy;
set { if (UIRoot) UIRoot.SetActive(value); }
}
public abstract void ConstructUI(GameObject parent);
public virtual void Destroy()
{
if (UIRoot)
GameObject.Destroy(UIRoot);
}
}
}