Exemplo n.º 1
0
        public Animation()
            : base()
        {
            Frames = new List<Texture>();
            StopFrame = DEFAULT_STOP_FRAME;
            CurrentFrame = StopFrame;

            FrameRate = DEFAULT_FRAME_RATE;

            LoopState = DEFAULT_LOOP_STATE;

            IsPlaying = false;

            Timer = new Timer();
            Timer.Start();
        }
Exemplo n.º 2
0
        public Animation(Animation copy)
            : base(copy)
        {
            Frames = new List<Texture>();
            foreach (Texture frame in copy.Frames)
                AddFrame(new Texture(frame));

            StopFrame = copy.StopFrame;
            CurrentFrame = StopFrame;

            FrameRate = copy.FrameRate;

            LoopState = copy.LoopState;

            IsPlaying = false;

            Timer = new Timer();
            Timer.Start();
        }