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; } } }
public CreditList(SelectionArgs args) { InitializeComponent(); selectionHandler += select; selectionHandler?.Invoke(args); }