販売アニメーション修正
This commit is contained in:
parent
4bfb03fcff
commit
3b6fb95a31
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue