Guys i’m making a “visualnovel/rpg” and i’ve created a buttonmanager and a chatboxmanager but when i activate the chatbox to show the dialog and the player was walking to the right or left using the buttons in the interface the player keeps walking forever to the right or left (depending on the button that was being pressed) because i disabled in the moment it was being pressed how do i solve it because the chatbox needs to appear and the “walk buttons” need to appear when the chatbox go away?
Player Was Walking → buttons get hided → ChatBox Appears → Chatbox Close → player walks forever to the right or left(whatever was being pressed)