FIx bug animation not stop. add more QOL for test animation scene. add AnimationSceneSkillTest.md to show how to use

This commit is contained in:
Tran Hai Nam
2026-05-20 15:16:24 +07:00
parent 7301f9897c
commit d2aa2c8001
45 changed files with 118360 additions and 23 deletions
+3 -2
View File
@@ -33,11 +33,13 @@ namespace BrewMonster
private const float FadeTime = 100;
private const FadeMode FadeMode = Animancer.FadeMode.FixedDuration;
private string previousAnimationName;
private string lastQueueAnimationName;
private void PlayActionEventHandler(PlayActionEvent @event)
{
//prevent enqueue the same loop animation
bool loopcheck = @event.IsLoop == true && previousAnimationName == @event.AnimationName;
if(loopcheck)
bool queuecheck = lastQueueAnimationName == @event.AnimationName;
if(loopcheck || queuecheck)
{
return;
}
@@ -162,7 +164,6 @@ namespace BrewMonster
}
private void PlayNext()
{
if (_animationQueue.Count == 0)
{
return;