コード例 #1
0
ファイル: Logic_Animation.cs プロジェクト: Wydra/WickedEngine
        public void Reset()
        {
            Animation anim = new Animation(2, 32, 32, 0, 0);
            anim.FramesPerSecond = 60;
            Rectangle frame1 = anim.CurrentFrameRect;
            anim.Update();
            anim.Reset();
            Rectangle resetFrame = anim.CurrentFrameRect;

            Assert.That(frame1, Is.EqualTo(resetFrame));
        }