Cow_Life_Sim_RPG/UI/ActionButtons/FastWalking/FastWalkingToggle.gd

11 lines
200 B
GDScript

extends CheckButton
func _process(delta):
if LevelManager.skills["walking"].currentLevel < 20:
hide()
else:
show()
func _on_toggled(toggled_on):
GameVariables.player.fastWalking = toggled_on