public void Select(SerializableGuid selection) { TaggedAnimationClip found = m_Clips.FirstOrDefault(tc => tc.AnimationClipGuid == selection); if (m_Selection != found) { m_Selection = found; UpdateLabel(); } }
internal void Select(TaggedAnimationClip selection) { if (selection != null && !m_Clips.Contains(selection)) { selection = null; } if (m_Selection == selection) { m_Selection = null; } else { m_Selection = selection; } UpdateLabel(); SelectionChanged?.Invoke(m_Selection); }
public void Reset() { m_Selection = null; m_Clips.Clear(); m_Button.text = k_DefaultLabel; }