SpineSkeletonTests AddAnimationEnds Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Spine.Tests
Assembly: DeltaEngine.Rendering2D.Spine.Tests (in DeltaEngine.Rendering2D.Spine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void AddAnimationEnds()
Examples

[Test, CloseAfterFirstFrame, Timeout(5000)]
public void AddAnimationEnds()
{
    bool isFinished = false;
    spineboy.SetAnimation("walk");
    spineboy.AddAnimation("jump", () => isFinished = true, 0.2f);
    AdvanceTimeAndUpdateEntities(2.5f);
    Assert.IsTrue(isFinished);
}
See Also