mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-11-13 09:05:54 +08:00
add EscWorld.isNullOrDetroyed
This commit is contained in:
parent
150ad8d132
commit
a976b75fc7
@ -731,6 +731,14 @@ namespace DCFApixels.DragonECS
|
|||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class EcsWorldExtenssions
|
||||||
|
{
|
||||||
|
public static bool IsNullOrDetroyed(this EcsWorld self)
|
||||||
|
{
|
||||||
|
return self == null || self.IsDestroyed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region Callbacks Interface
|
#region Callbacks Interface
|
||||||
public interface IEcsWorldEventListener
|
public interface IEcsWorldEventListener
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user