mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
update entlobg.IsAlive
This commit is contained in:
parent
e8bdb01e37
commit
e670c3d61c
@ -47,7 +47,10 @@ namespace DCFApixels.DragonECS
|
|||||||
public bool IsAlive
|
public bool IsAlive
|
||||||
{
|
{
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
get { return EcsWorld.GetWorld(_world).IsAlive(_id, _gen); }
|
get
|
||||||
|
{
|
||||||
|
return EcsWorld.TryGetWorld(_world, out EcsWorld world) && world.IsAlive(_id, _gen);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public bool IsNull
|
public bool IsNull
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user