SpineSkeletonTests SetAnimationEnds 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 SetAnimationEnds()
Examples

[Test, CloseAfterFirstFrame]
public void SetAnimationEnds()
{
    bool isFinished = false;
    spineboy.SetAnimation("walk", () => isFinished = true);
    AdvanceTimeAndUpdateEntities(2.0f);
    Assert.IsTrue(isFinished);
}
See Also