private void OnViewChanged() { var canNavigateBack = ViewSwitcher.CanNavigateBack(); CloseButton.gameObject.SetActive(!canNavigateBack); BackButton.gameObject.SetActive(canNavigateBack); }