Newer
Older
DungeonShooting / DungeonShooting_Godot / src / framework / map / image / AffiliationSpriteRoot.cs
@小李xl 小李xl on 2 Nov 2023 283 bytes 优化可互动物体

using Godot;

public partial class AffiliationSpriteRoot : Node2D, IDestroy
{
    public bool IsDestroyed { get; private set; }
    public void Destroy()
    {
        if (IsDestroyed)
        {
            return;
        }

        IsDestroyed = true;
        QueueFree();
    }
}