public void WillUpdateTimeOnAnEnabledClip() { animation.Play("Clip1"); Assert.That(animation["Clip1"].time, Is.EqualTo(0)); animation.UpdateAnimationStates(1.0f); Assert.That(animation["Clip1"].time, Is.EqualTo(1.0f)); }
public void ItWillNotBeEnabledIfOtherClipsArePlaying() { string name = "MyClip"; AnimationClip clip = new AnimationClip(); animation.AddClip(clip, name); animation.Play(name); AnimationState state = animation.PlayQueued(name); Assert.That(state.enabled, Is.False); }
public void Setup() { animation = new Components.Animation(); animation.AddClip(new AnimationClip() { length = 2 }, "Clip1"); animation.Play("Clip1"); }
public void Setup() { animation = new Components.Animation(); animation.AddClip(new AnimationClip() { length = 2 }, "Clip1"); animation.Play("Clip1"); }
public void PlayWillReturnFalseIfTheClipIsNotPresent() { Assert.That(animation.Play("MyClip"), Is.False); }