Skip to content

Commit a1b79e5

Browse files
Implemented OnWillDestory event to the EntitySystem interface
1 parent 1d3b6ba commit a1b79e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/Interfaces/IEntitySystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public interface IEntitySystem {
4040
// on gui draw call.
4141
void OnDrawGui ();
4242

43+
/// Method invoked when the system will be destroyed, this will happen when
44+
/// the application is closing or the controller is being destroyed.
45+
void OnWillDestroy ();
46+
4347
/// Sets whether the system is enabled or disabled, enabling the system allows
4448
/// it to invoke all of the cycle calls such as OnUpdate and OnDrawGizmos.
4549
void SetEnabled (bool value);

0 commit comments

Comments
 (0)