Skip to content

Commit 3619222

Browse files
committed
chore: interface for AnimatorPlayback
1 parent b3cab5b commit 3619222

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Assets/com.fluid.unity-animator-helpers/Runtime/AnimatorPlayback/AnimatorPlayback.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Adnc.AnimatorHelpers {
1010
[CreateAssetMenu(fileName = "Playback", menuName = "ADNC/Animator Variables/Animator Playback", order = 1)]
11-
public class AnimatorPlayback : ScriptableObject {
11+
public class AnimatorPlayback : ScriptableObject, IAnimatorPlayback {
1212
[HideInInspector]
1313
public List<VarBool> bools = new List<VarBool>();
1414

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections;
2+
using UnityEngine;
3+
4+
namespace Adnc.AnimatorHelpers {
5+
public interface IAnimatorPlayback {
6+
bool Play (Animator anim);
7+
IEnumerator PlayCoroutine (Animator anim);
8+
bool IsConditionsMet (Animator anim);
9+
}
10+
}

Assets/com.fluid.unity-animator-helpers/Runtime/AnimatorPlayback/IAnimatorPlayback.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)