mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44: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
|
||||
{
|
||||
[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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user