mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 03:53:01 +00:00
13 lines
No EOL
373 B
C#
13 lines
No EOL
373 B
C#
using UnityEngine;
|
|
|
|
namespace HeavenStudio.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);
|
|
}
|
|
}
|
|
} |