public void ResumeAll_Animations_Resumed() { var c1 = Substitute.For <IAnimationPipelineController>(); var c2 = Substitute.For <IAnimationPipelineController>(); AnimationPipelineController.AddController(c1); AnimationPipelineController.AddController(c2); AnimationPipelineController.ResumeAll(); c1.Received().Resume(); c2.Received().Resume(); }
public override void Update() { Context.InputSystem .IsKeyDown(Keys.D1, () => ToogleAnimation(controller1)) .IsKeyDown(Keys.D2, () => ToogleAnimation(controller2)) .IsKeyDown(Keys.D3, () => { ToogleAnimation(controller1); ToogleAnimation(controller2); }) .IsKeyDown(Keys.D0, () => { controller1.Destroy(); controller2.Destroy(); }) .IsKeyDown(Keys.D7, () => AnimationPipelineController.PauseAll()) .IsKeyDown(Keys.D8, () => AnimationPipelineController.ResumeAll()) .IsKeyDown(Keys.D9, () => AnimationPipelineController.DestroyAll()); }