Skip to content

Commit 0db5d09

Browse files
Added Virtual method OnWillDestory on Controller base-class
1 parent b39d5c4 commit 0db5d09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/Controller.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ public virtual void OnInitialized () { }
104104
/// Method invoked when the controller updates, will be called every frame.
105105
public virtual void OnUpdate () { }
106106

107+
/// Method invoked when the system will be destroyed, this will happen when
108+
/// the application is closing or the controller is being destroyed.
109+
public virtual void OnWillDestroy () { }
110+
107111
// Register your systems and services to the controller. This can only be
108112
// done during 'OnInitialize' cycle.
109113
public void Register (params System.Type[] typesOf) {

0 commit comments

Comments
 (0)