販売アニメーション修正

This commit is contained in:
kimura 2021-10-22 12:28:20 +09:00
parent 4bfb03fcff
commit 3b6fb95a31
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,7 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
public void StartPromotion() public void StartPromotion()
{ {
isPromotion = true; isPromotion = true;
animator.ResetTrigger(Normal);
animator.SetTrigger(Promotion); animator.SetTrigger(Promotion);
Vector3 localPosition = RightPos; Vector3 localPosition = RightPos;
localPosition += Vector3.forward * (localPosition.y + Mathf.Abs(walkSideBottomPos)); localPosition += Vector3.forward * (localPosition.y + Mathf.Abs(walkSideBottomPos));
@ -168,12 +169,14 @@ public class BrotherPinkView : SingletonMonoBehaviour<BrotherPinkView>
var time = stateInfo.normalizedTime; var time = stateInfo.normalizedTime;
this.CallWaitForSeconds((1 - time % 1) * length - .3f, () => this.CallWaitForSeconds((1 - time % 1) * length - .3f, () =>
{ {
animator.ResetTrigger(Promotion);
ResetMove(); ResetMove();
isPromotion = false; isPromotion = false;
}); });
return; return;
} }
} }
animator.ResetTrigger(Promotion);
ResetMove(); ResetMove();
isPromotion = false; isPromotion = false;
} }