public void Bind(AtomAnimation animation)
 {
     _animation = animation;
     if (_scrubber != null)
     {
         _scrubber.animation = animation;
     }
     if (_dopeSheet != null)
     {
         _dopeSheet.Bind(animation);
     }
     _animation.onClipsListChanged.AddListener(OnClipsListChanged);
     _animation.onCurrentAnimationChanged.AddListener(OnCurrentAnimationChanged);
     SyncAnimationsListNow();
 }
Exemplo n.º 2
0
 public void Bind(AtomAnimationEditContext animationEditContext)
 {
     _animationEditContext = animationEditContext;
     if (_scrubber != null)
     {
         _scrubber.animationEditContext = animationEditContext;
     }
     if (_dopeSheet != null)
     {
         _dopeSheet.Bind(animationEditContext);
     }
     _animationEditContext.animation.onClipsListChanged.AddListener(OnClipsListChanged);
     _animationEditContext.animation.onClipIsPlayingChanged.AddListener(OnClipIsPlayingChanged);
     _animationEditContext.onCurrentAnimationChanged.AddListener(OnCurrentAnimationChanged);
     _animationEditContext.onTimeChanged.AddListener(OnTimeChanged);
     SyncAnimationsListNow();
     _animationEditContext.current?.onAnimationSettingsChanged.AddListener(OnAnimationSettingsChanged);
     OnAnimationSettingsChanged(nameof(AtomAnimationClip.animationName));
 }
Exemplo n.º 3
0
 public void Bind(AtomAnimation animation)
 {
     _animation          = animation;
     _scrubber.animation = animation;
     _dopeSheet.Bind(animation);
 }