Changed input manager to new system, added jump timer to "fix" jump mechanic (Double jumps, no jumps, etc.)
This commit is contained in:
@@ -474,6 +474,12 @@ namespace Assets.Scripts
|
||||
background = GameObject.Find("secondaryBackgroundPlayer");
|
||||
text = GameObject.Find("secondaryTextPlayer");
|
||||
updateBar(foreground, background, text, player.getPlayerStat("MaxSecondary").getAmount() + equipment["MP"], player.getPlayerStat("Secondary").getAmount());
|
||||
|
||||
|
||||
foreground = GameObject.Find("jumpTimerFill");
|
||||
background = GameObject.Find("jumpTimer");
|
||||
text = null;
|
||||
updateBar(foreground, background, text, player.secondsUntilJump, (int)player.secondsSinceJump);
|
||||
}
|
||||
|
||||
public void updateBar(GameObject bar, GameObject barBackground, GameObject textField, int maxValue, int minValue)
|
||||
|
||||
Reference in New Issue
Block a user