Пример #1
0
 public void SetTop(Escapeable item)
 {
     if (stack.Contains(item))
     {
         stack.SetTop(item);
     }
 }
        public void SetTwoButtonPopUpAction(TwoButtonPopUpController popup)
        {
            PopUpManager.Instance.ActivateTwoButtonPopUp(GetLangText(twoPopUpContext), GetLangText(twoPopUpTxt1), (TwoButtonPopUpController _popup) =>
            {
                if (onTwoBtn1 != null)
                {
                    onTwoBtn1.Invoke();
                }
            },
                                                         GetLangText(twoPopUpTxt2),
                                                         (TwoButtonPopUpController _popup) =>
            {
                if (onTwoBtn2 != null)
                {
                    onTwoBtn2.Invoke();
                }
            }
                                                         );
            Escapeable escapeable = popup.GetComponent <Escapeable>();

            escapeable.onEscape = onEscapeOnPopUp;
            escapeable.onEscape.AddListener(() => ClearOnEscape(escapeable));
        }
Пример #3
0
 public void ClearOnEscape(Escapeable escapeable)
 {
     escapeable.onEscape.RemoveAllListeners();
 }