void OnAddAnnotationSelection(Type type) { if (type != null && m_TaggedClip != null) { if (TagAttribute.IsTagType(type)) { m_TaggedClip.AddTag(type, m_Owner.ActiveTime); } else if (MarkerAttribute.IsMarkerType(type)) { m_TaggedClip.AddMarker(type, m_Owner.ActiveTime); } } }
void OnAddSelection(Type type) { if (type != null && TaggedClip != null) { if (TagAttribute.IsTagType(type)) { OnAddTagSelection(type, ActiveTime); } else if (MarkerAttribute.IsMarkerType(type)) { TaggedClip.AddMarker(type, ActiveTime); TargetAsset.MarkDirty(); } TaggedClip.NotifyChanged(); } }