Esempio n. 1
0
        public SimpleAnimation(SimpleAnimation Copy)
        {
            IsAnimated = Copy.IsAnimated;
            Name       = Copy.Name;
            Path       = Copy.Path;

            if (Copy.IsAnimated)
            {
                ActiveAnimation             = new AnimationLooped(Copy.Path);
                ActiveAnimation.Content     = Copy.ActiveAnimation.Content;
                ActiveAnimation.DicTimeline = Copy.ActiveAnimation.DicTimeline;
                ActiveAnimation.Load();
                ActiveAnimation.UpdateKeyFrame(0);
            }
            else
            {
                StaticSprite = Copy.StaticSprite;
            }
        }