販売弟のアニメーションバグ修正

This commit is contained in:
kimura 2021-10-13 11:16:56 +09:00
parent f5cf7256a2
commit 0dd54a6c16
1 changed files with 7 additions and 3 deletions

View File

@ -103,7 +103,11 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
var move = pinkMoves[moveIndex]; var move = pinkMoves[moveIndex];
wayPoint = move.wayPoint; wayPoint = move.wayPoint;
completedDuration = move.wait; completedDuration = move.wait;
if (animator != null) animator.SetTrigger(move.trigger); if (animator != null)
{
animator.ResetTrigger(Normal);
animator.SetTrigger(move.trigger);
}
if (Vector2.Distance(wayPoint, pinkTransform.localPosition.ToVector2()) < .01f) if (Vector2.Distance(wayPoint, pinkTransform.localPosition.ToVector2()) < .01f)
{ {
// nop // nop
@ -145,11 +149,11 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
public void SetWalk() public void SetWalk()
{ {
if (!isManyCustomer) if (isLocked)
{ {
return; return;
} }
if (!isLocked) if (isManyCustomer)
{ {
isManyCustomer = false; isManyCustomer = false;
SetPinkMove(); SetPinkMove();