VOID_Core: Now gets OnDestroy and OnApplicationQuit calls from the Masters. OnApplicationQuit implemented as an event; probably will move other Unity lifecycle calls to events as well.
[VOID.git] / VOIDEditorMaster.cs
blob:a/VOIDEditorMaster.cs -> blob:b/VOIDEditorMaster.cs
--- a/VOIDEditorMaster.cs
+++ b/VOIDEditorMaster.cs
@@ -105,6 +105,26 @@
 
 			this.Core.OnGUI();
 		}
+
+		public void OnDestroy()
+		{
+			if (this.Core == null)
+			{
+				return;
+			}
+
+			this.Core.OnDestroy();
+		}
+
+		public void OnApplicationQuit()
+		{
+			if (this.Core == null)
+			{
+				return;
+			}
+
+			this.Core.OnApplicationQuit();
+		}
 	}
 }