add EscWorld.isNullOrDetroyed

This commit is contained in:
Mikhail 2024-03-28 20:32:24 +08:00
parent 150ad8d132
commit a976b75fc7

View File

@ -731,6 +731,14 @@ namespace DCFApixels.DragonECS
#endregion
}
public static class EcsWorldExtenssions
{
public static bool IsNullOrDetroyed(this EcsWorld self)
{
return self == null || self.IsDestroyed;
}
}
#region Callbacks Interface
public interface IEcsWorldEventListener
{