Skip to content

Commit 18e5106

Browse files
Implemented OnWillDestory event to the Service interface
1 parent a1b79e5 commit 18e5106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/Interfaces/IService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ public interface IService {
1717
// on gui draw call.
1818
void OnDrawGui ();
1919

20+
/// Method invoked when the service will be destroyed, this will happen when
21+
/// the application is closing or the controller is being destroyed.
22+
void OnWillDestroy ();
23+
2024
/// Internal method to set the instance reference. This method will
2125
/// be called after the controller and service initialization.
2226
void Internal_OnInitialize ();

0 commit comments

Comments
 (0)