walk is normalized now
This commit is contained in:
parent
bdb5cfc949
commit
2b4985ec5b
|
|
@ -26,6 +26,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
private Animator anim;
|
private Animator anim;
|
||||||
private float fallStartY;
|
private float fallStartY;
|
||||||
private double playYanFallBeat;
|
private double playYanFallBeat;
|
||||||
|
private double walkBeat;
|
||||||
[SerializeField] private float randomMinBalloonX = -0.45f;
|
[SerializeField] private float randomMinBalloonX = -0.45f;
|
||||||
[SerializeField] private float randomMaxBalloonX = 0.45f;
|
[SerializeField] private float randomMaxBalloonX = 0.45f;
|
||||||
|
|
||||||
|
|
@ -61,6 +62,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
break;
|
break;
|
||||||
case JumpingState.Walking:
|
case JumpingState.Walking:
|
||||||
transform.localPosition = Vector3.zero;
|
transform.localPosition = Vector3.zero;
|
||||||
|
anim.DoScaledAnimation("Walk", walkBeat, 0.5f, 0.75f);
|
||||||
if (PlayerInput.Pressed() && !game.IsExpectingInputNow(InputType.STANDARD_DOWN))
|
if (PlayerInput.Pressed() && !game.IsExpectingInputNow(InputType.STANDARD_DOWN))
|
||||||
{
|
{
|
||||||
Whiff(cond.songPositionInBeatsAsDouble);
|
Whiff(cond.songPositionInBeatsAsDouble);
|
||||||
|
|
@ -129,7 +131,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
{
|
{
|
||||||
if (jumpingState == JumpingState.Walking) return;
|
if (jumpingState == JumpingState.Walking) return;
|
||||||
jumpingState = JumpingState.Walking;
|
jumpingState = JumpingState.Walking;
|
||||||
anim.DoScaledAnimationAsync("Walk", 0.5f);
|
walkBeat = Conductor.instance.songPositionInBeats;
|
||||||
}
|
}
|
||||||
public void PopBalloon(int index, bool instant)
|
public void PopBalloon(int index, bool instant)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue