void OnRemovedGlobalSequence(UnityEditorInternal.ReorderableList list) { if (list.index < 0 || list.index >= list.count) { return; } Sequence toRemove = m_globalSequences.GetArrayElementAtIndex(list.index).objectReferenceValue as Sequence; m_globalSequences.DeleteArrayElementAtIndex(list.index); if (Application.isPlaying && toRemove != null && !AmbienceManager.WasSequenceAdded(toRemove)) { AmbienceManager.OnEditorRemovedSequence(toRemove); } }