feat(init): 搭建初始的项目框架

This commit is contained in:
2025-10-14 12:39:53 +08:00
parent 3cf503bfa6
commit eba8d5792d
89 changed files with 2782 additions and 100 deletions

View File

@@ -0,0 +1,37 @@
using System;
using UnityEngine;
namespace Core
{
/// <summary>
/// Base class for all UI components.
/// </summary>
public abstract class UIBase : MonoBehaviour
{
public bool IsOpenOnFirstLoad;
/// <summary>
/// Called when the UI is shown.
/// </summary>
public virtual void Show()
{
gameObject.SetActive(true);
}
/// <summary>
/// Called when the UI is hidden.
/// </summary>
public virtual void Hide()
{
gameObject.SetActive(false);
}
/// <summary>
/// Called when the UI is initialized.
/// </summary>
public virtual void Initialize()
{
// Override in derived classes for initialization logic.
}
}
}