Files
2026-03-05 11:39:06 +08:00

14 lines
534 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Fantasy.Entitas.Interface;
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
namespace Fantasy;
public sealed class GateUnitDestroySystem : DestroySystem<GateUnit>
{
protected override void Destroy(GateUnit self)
{
// 移除缓存中的GateUnit
// 这里的销毁只能是通过EntityTimeoutComponent超时来触发的销毁不能通过直接调用Dispose来触发的销毁
GateUnitHelper.Remove(self.Scene, self.Id, false).Coroutine();
}
}