Namespace: DeltaEngine.Rendering2D.Spine.Tests
Assembly: DeltaEngine.Rendering2D.Spine.Tests (in DeltaEngine.Rendering2D.Spine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Spine.Tests (in DeltaEngine.Rendering2D.Spine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void SetAnimation() { spineboy.SetAnimation("walk"); Assert.AreEqual(walk, spineboy.state.GetCurrent(0).Animation); }
[Test, CloseAfterFirstFrame] public void SetAnimationForTrack1() { spineboy.SetAnimation("walk", 1); Assert.AreEqual(walk, spineboy.state.GetCurrent(1).Animation); }
[Test, CloseAfterFirstFrame] public void SetAnimationEnds() { bool isFinished = false; spineboy.SetAnimation("walk", () => isFinished = true); AdvanceTimeAndUpdateEntities(2.0f); Assert.IsTrue(isFinished); }
See Also