private void RiderTagSelected(FragmentStatusSlotItem value)
 {
     if (value != null)
     {
         var file = _pfs.FindFile(value.Entry.Value.AnimationFile);
         if (file == null)
         {
             _rider.SetAnimation(null);
         }
         else
         {
             var animationRef = _skeletonAnimationLookUpHelper.FindAnimationRefFromPackFile(file, _pfs);
             _rider.SetAnimation(animationRef);
         }
     }
     _validateAction();
 }
Exemplo n.º 2
0
 private void RiderAnimationChanged(AnimationClip newValue)
 {
     UpdateCanSaveAndPreviewStates();
     if (CanPreview.Value)
     {
         CreateMountAnimation();
     }
     else
     {
         _newAnimation?.SetAnimation(null);
     }
 }
        private void MountTagSeleted(FragmentStatusSlotItem value)
        {
            if (value != null)
            {
                var file         = _pfs.FindFile(value.Entry.Value.AnimationFile);
                var animationRef = _skeletonAnimationLookUpHelper.FindAnimationRefFromPackFile(file, _pfs);
                _mount.SetAnimation(animationRef);

                var lookUp = "RIDER_" + value.Entry.Value.Slot.Value;
                SelectedRiderTag.Filter       = "";
                SelectedRiderTag.SelectedItem = SelectedRiderTag.Values.FirstOrDefault(x => x.Entry.Value.Slot.Value == lookUp);
            }
            _validateAction();
        }