protected void OnDestroy() { if (gitManager != null) { if (gitManager.Callbacks != null) { Unsubscribe(gitManager.Callbacks); } gitManager.RemoveWatcher(this); } }