void Execute(ShortcutEntry entry) { if (entry.type == ShortcutType.Clutch) { throw new InvalidOperationException("Clutches cannot be activated through conflict resolution"); } var args = new ShortcutArguments(); args.context = m_ContextManager.GetContextInstanceOfType(entry.context); args.stage = ShortcutStage.End; entry.action(args); }
void Execute(ShortcutEntry entry) { if (entry.type == ShortcutType.Clutch) { throw new InvalidOperationException("Clutches cannot be activated through conflict resolution"); } var entryIndex = m_Entries.IndexOf(entry); var args = new ShortcutArguments(); args.context = m_Contexts[entryIndex]; args.stage = ShortcutStage.End; entry.action(args); }