2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2023-07-01 15:32:23 +03:00
parent 7ce0037e40
commit b6f5a8d9dd
12 changed files with 73 additions and 27 deletions

View File

@ -704,6 +704,8 @@ public class Instance
get { return store; }
}
public bool IsDestroyed { get; private set; }
/// <summary>
/// List of children.
/// </summary>
@ -1009,6 +1011,7 @@ public class Instance
private void Resource_OnDestroy(object sender)
{
IsDestroyed = true;
Destroyed?.Invoke((IResource)sender);
}
}

View File

@ -914,6 +914,8 @@ public static class Warehouse
resource.Destroy();
resource.Instance = null;
return true;
}
}