public void SetState(IInputState state) { Debug.Log($"[GameManager] switching input state! {_currentState?.GetType().Name} -> {state?.GetType().Name}"); _currentState?.Exit(); _currentState = state; _currentState?.Enter(); }
private void Start() { if (state != null) { state.Exit(); } state = new NoSelectionState(); state.Enter(); }