Core/ Input Escape Manager

InputEscapeManager is a static class that manages escape actions in a stack-like manner. It allows pushing, popping, and executing registered escape actions. This system ensures that only the most recent escape action is executed when triggered.

Public Methods

Push

You can push an action onto the escape stack, optionally providing a unique key and an insertion index.

Popping an Escape Action

Pops and executes the most recent escape action.

Blocking Escape Execution

Temporarily block escape actions from executing

Events

InputEscapeEvent

Triggered when an escape action occurs. By default, it calls Pop() to execute the last action. Can be triggered manually to execute the last action.