販売弟のアニメーションバグ修正
This commit is contained in:
parent
f5cf7256a2
commit
0dd54a6c16
|
|
@ -103,7 +103,11 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
|
|||
var move = pinkMoves[moveIndex];
|
||||
wayPoint = move.wayPoint;
|
||||
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)
|
||||
{
|
||||
// nop
|
||||
|
|
@ -145,11 +149,11 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
|
|||
|
||||
public void SetWalk()
|
||||
{
|
||||
if (!isManyCustomer)
|
||||
if (isLocked)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!isLocked)
|
||||
if (isManyCustomer)
|
||||
{
|
||||
isManyCustomer = false;
|
||||
SetPinkMove();
|
||||
|
|
|
|||
Loading…
Reference in New Issue