public void PlaySetsAnimatorBool() { _playback.bools.Add(new VarBool { name = "bool", value = true }); _playback.Play(_stub.Animator); Assert.IsTrue(_stub.Animator.GetBool("bool")); }
public IEnumerator PlaySetsAnimatorTrigger() { _playback.triggers.Add(new VarTrigger { name = "trigger" }); _playback.Play(_anim); yield return(new WaitForEndOfFrame()); Assert.IsFalse(_anim.GetCurrentAnimatorStateInfo(0).IsName("New State")); }