販売弟のアニメーションバグ修正
This commit is contained in:
parent
f5cf7256a2
commit
0dd54a6c16
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue