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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user