using Godot;
namespace TBL.GodotSharp
{
///
/// 游戏核心主节点
/// 作为游戏根节点及各个控制对象的持有者
///
public abstract partial class Game : Control
{
///
/// 全局单例
///
public static Game Instance { get; private set; }
public override void _EnterTree()
{
Instance = this;
}
public override void _ExitTree()
{
Instance = null;
}
}
}