Esempio n. 1
0
 public static void RemoveCallback(OnDestroyCallback callback)
 {
     DestroyListner[] listners = FindObjectsOfType(typeof(DestroyListner)) as DestroyListner[];
     foreach (DestroyListner listner in listners)
     {
         listner.onDestroyCallback -= callback;
     }
 }
 private void ImgCloseDetails_Click(object sender, EventArgs e) => OnDestroyCallback?.Invoke(this, EventArgs.Empty);