private void TryToFinalizeTransition() { if (_isTransitioning) { if (!_previousState.IsTransitioning) { _isTransitioning = false; PoolManager.instance.Recycle(_previousState.gameObject); _currentState.gameObject.SetActive(true); _currentState.BringPanel(); } //else Debug.Log("Previous transition not finished."); } //else Debug.Log("No transition active."); }