13 lines
378 B
C#
13 lines
378 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace RhythmHeavenMania.Util
|
||
|
{
|
||
|
public static class AnimationHelpers
|
||
|
{
|
||
|
public static bool IsAnimationNotPlaying(this Animator anim)
|
||
|
{
|
||
|
float compare = anim.GetCurrentAnimatorStateInfo(0).speed;
|
||
|
return anim.GetCurrentAnimatorStateInfo(0).normalizedTime >= compare && !anim.IsInTransition(0);
|
||
|
}
|
||
|
}
|
||
|
}
|