Exemplo n.º 1
0
        public static void DeleteAnimationPreviews(FSequence sequence)
        {
            Dictionary <int, FAnimationTrackCache> sequencePreviews = null;

            if (_animPreviews.TryGetValue(sequence.GetInstanceID(), out sequencePreviews))
            {
                Dictionary <int, FAnimationTrackCache> .Enumerator e = sequencePreviews.GetEnumerator();
                while (e.MoveNext())
                {
                    e.Current.Value.Clear();
                }
                sequencePreviews.Clear();

                _animPreviews.Remove(sequence.GetInstanceID());
            }
        }
Exemplo n.º 2
0
        public static FAnimationTrackCache GetAnimationPreview(FSequence sequence, Transform owner)
        {
            Dictionary <int, FAnimationTrackCache> sequencePreviews = null;

            FAnimationTrackCache animationTrackCache = null;

            if (_animPreviews.TryGetValue(sequence.GetInstanceID(), out sequencePreviews))
            {
                sequencePreviews.TryGetValue(owner.GetInstanceID(), out animationTrackCache);
            }

            return(animationTrackCache);
        }