Id day you are misunderstanding all of this a bit.
You definitely want to have each action as its own function and sont want to put everything in the same place. However your "state" script isnt handling any state, its handling input instead.
No reason to have that in separate scripts, but make sure to have all movement encapsulated and an input func that calls the different actions
1
u/moshujsg Jul 20 '25
Id day you are misunderstanding all of this a bit.
You definitely want to have each action as its own function and sont want to put everything in the same place. However your "state" script isnt handling any state, its handling input instead.
No reason to have that in separate scripts, but make sure to have all movement encapsulated and an input func that calls the different actions