mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-30 13:33:07 +00:00
Space Soccer: Backwards compatibility with levels using old swing system.
This commit is contained in:
parent
5a7268c3dc
commit
dbe1e011c9
2 changed files with 7 additions and 0 deletions
|
@ -85,6 +85,9 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
|
|||
else
|
||||
{
|
||||
highKickSwing = highKicks[i].swing;
|
||||
if (highKickSwing == 0f)
|
||||
highKickSwing = 0.5f;
|
||||
|
||||
if (highKicks[i].beat + GetAnimLength(State.HighKicked) > currentBeat)
|
||||
{
|
||||
//Debug.Log("Setting state to high kick");
|
||||
|
|
|
@ -203,7 +203,11 @@ namespace RhythmHeavenMania.Games.SpaceSoccer
|
|||
canKick = false;
|
||||
|
||||
if (ball)
|
||||
{
|
||||
ball.highKickSwing = highKicks[i].swing;
|
||||
if (ball.highKickSwing == 0f)
|
||||
ball.highKickSwing = 0.5f;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue