/// <inheritdoc/> public void OnGraphStart(Playable playable) { #if UNITY_EDITOR //Check folder MD5 if (!string.IsNullOrEmpty(m_folder) && Directory.Exists(m_folder)) { if (UpdateFolderMD5()) { Reload(m_folderMD5); } } FolderContentsChangedNotifier.GetInstance().Subscribe(this); #endif }
static void FolderContentsChangedNotifier_OnSceneClosed(Scene scene) { FolderContentsChangedNotifier.GetInstance().UnsubscribeAll(); }
/// <inheritdoc/> public void OnGraphStop(Playable playable) { #if UNITY_EDITOR FolderContentsChangedNotifier.GetInstance().Unsubscribe(this); #endif }