Skip to content

Commit b39d5c4

Browse files
Added Virtual method OnWillDestory on EntitySystem base-class
1 parent b9960ba commit b39d5c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/EntitySystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public virtual void OnEnabled () { }
5656
// Method invoked when the system becomes disabled.
5757
public virtual void OnDisabled () { }
5858

59+
/// Method invoked when the system will be destroyed, this will happen when
60+
/// the application is closing or the controller is being destroyed.
61+
public virtual void OnWillDestroy () { }
62+
5963
// Method invoked when an entity of this system is initializing.
6064
public virtual void OnEntityInitialize (EntityComponentType entity) { }
6165

0 commit comments

Comments
 (0)