Method OnDestroy
OnDestroy()
Destroys this system, executing any pending command buffers first.
Declaration
protected override void OnDestroy()
Overrides
Remarks
If you override this method, you should call base.OnDestroy()
to retain the default
destruction logic.