wave hand emote
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using Animancer;
|
||||
using BrewMonster;
|
||||
using System.Collections.Generic;
|
||||
@@ -150,6 +151,7 @@ namespace BrewMonster
|
||||
return namedAnimancer.States.TryGet("ActionName", out var existingState) ? true : false;
|
||||
}
|
||||
|
||||
private string _currentAnimationName;
|
||||
/// <summary>
|
||||
/// play an animation with name
|
||||
/// </summary>
|
||||
@@ -158,7 +160,17 @@ namespace BrewMonster
|
||||
/// <param name="fadeMode"></param>
|
||||
private void InternalPlayAnimation(string animationName, float duration = FadeTime, FadeMode fadeMode = FadeMode)
|
||||
{
|
||||
// if (string.CompareOrdinal(_currentAnimationName, "招手_通用") == 0)
|
||||
// {
|
||||
// Debug.LogError(0);
|
||||
// return;
|
||||
// }
|
||||
if (string.CompareOrdinal(animationName, "招手_通用") == 0)
|
||||
{
|
||||
Debug.LogError(2);
|
||||
}
|
||||
_currentState = namedAnimancer.TryPlay(animationName, duration, fadeMode);
|
||||
_currentAnimationName = animationName;
|
||||
if (_currentState == null)
|
||||
{
|
||||
BMLogger.LogError($"Null animation with name: {animationName}");
|
||||
|
||||
Reference in New Issue
Block a user