public void EditorOnKeyframeSelected(CUIKeyframe keyframe) { foreach (CUIKeyframe key in keyframes) { key.isSelected = key == keyframe; } }
private IEnumerator _play() { CUIKeyframe previous = null; foreach (var keyframe in keyframes) { if (previous == null) { keyframe.Select(true); previous = keyframe; continue; } keyframe.Select(); #if UNITY_EDITOR yield return(new EditorWaitForSeconds(keyframe.animTime + keyframe.delayAfterPrevious)); #else yield return(new WaitForSeconds(keyframe.animTime + keyframe.delayAfterPrevious)); #endif previous = keyframe; } }