Пример #1
0
 private void Start()
 {
     YesBut.onClick.AddListener(() =>
     {
         if (Yes != null)
         {
             Yes.Invoke();
         }
         Alerts.AlertCall.DownloadAlert.SetTrigger("Hide");
         Yes.RemoveAllListeners();
         No.RemoveAllListeners();
     });
     NoBut.onClick.AddListener(() =>
     {
         if (No != null)
         {
             No.Invoke();
         }
         Alerts.AlertCall.DownloadAlert.SetTrigger("Hide");
         Yes.RemoveAllListeners();
         No.RemoveAllListeners();
     });
 }