private void OnEnable()
        {
            BackButtonStateHandler componentInParent = GetComponentInParent <BackButtonStateHandler>();

            if (!(componentInParent == null) && !componentInParent.CanGoBack())
            {
                base.gameObject.SetActive(value: false);
            }
        }
 private void Start()
 {
     backButtonStateHandler = GetComponentInParent <BackButtonStateHandler>();
     if (backButtonStateHandler != null)
     {
         backButtonStateHandler.OnBackStateTransition += onBackStateTransition;
     }
     else
     {
         Log.LogError(this, "Couldn't find BackButtonStateHandler in parent");
     }
 }