mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
44e70ddf1e
Beat action is now used to define one-off objects that is used by the beat but I don't wanna bother making a different script for. Example case: the "hit 3" sprite in Karate Man. Animation helpers for functions I don't wanna rewrite 100,000 times. General improvements for Karate Man, like prepare animation and some updates to game events.
13 lines
No EOL
378 B
C#
13 lines
No EOL
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);
|
|
}
|
|
}
|
|
} |