private void Start() { _eventManager.onEnterInventoryEnabler += EnteredInventoryEnabler; _eventManager.onExitInventoryEnabler += EnteredInventoryEnabler; _keySM = new KeyStateMachine("Inventory"); }
public InputStateMachine(string[] codes) { _keyStates = new KeyStateMachine[codes.Length]; for (int i = 0; i < codes.Length; i++) { _keyStates[i] = new KeyStateMachine(codes[i]); } }