mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-15 17:20:24 +00:00
2.2
This commit is contained in:
@@ -32,7 +32,7 @@ public class Resource : IResource
|
||||
public Instance Instance { get; set; }
|
||||
|
||||
public event DestroyedEvent OnDestroy;
|
||||
|
||||
|
||||
public virtual void Destroy()
|
||||
{
|
||||
OnDestroy?.Invoke(this);
|
||||
@@ -52,6 +52,7 @@ public class Resource : IResource
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
~Resource()
|
||||
{
|
||||
Destroy();
|
||||
|
||||
Reference in New Issue
Block a user