Changed input manager to new system, added jump timer to "fix" jump mechanic (Double jumps, no jumps, etc.)

This commit is contained in:
finnchen123
2026-02-18 15:44:25 +01:00
parent 6884c7e031
commit 053b99f62c
6 changed files with 497 additions and 123 deletions

View File

@@ -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)