breadwinner/scenes/player/state_handler_component.gd
Balogh Krisztián 0ddbcf7744 major refactor + concept
- refactored the main player controller script into smaller components for readability
- refactored the file structure and added folder coloring
- added lore and concept for future reference
2026-07-29 00:05:40 +02:00

30 lines
474 B
GDScript

extends Node
var walking: bool = false
var running: bool = false
var crouching: bool = false
var in_menu: bool = false
func is_crouched(yes:bool):
if yes:
crouching = true
walking = false
running = false
else:
crouching = false
func is_walking(yes:bool):
if yes:
crouching = false
walking = true
running = false
else:
walking = false
func is_running(yes:bool):
if yes:
crouching = false
walking = false
running = true
else:
running = false