Пример #1
0
 public static void ForeachSelection(SelectionHandler handler)
 {
     foreach (UnityEngine.Object obj in Selection.objects)
     {
         ForeachSelectionResult result = handler.Invoke(obj);
         if (result == ForeachSelectionResult.result_continue)
         {
             continue;
         }
         else if (result == ForeachSelectionResult.result_break)
         {
             break;
         }
     }
 }
Пример #2
0
 public CreditList(SelectionArgs args)
 {
     InitializeComponent();
     selectionHandler += select;
     selectionHandler?.Invoke(args);
 }