示例#1
0
 public void EditorOnKeyframeSelected(CUIKeyframe keyframe)
 {
     foreach (CUIKeyframe key in keyframes)
     {
         key.isSelected = key == keyframe;
     }
 }
示例#2
0
        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;
            }
        }