private void CreateAction() { if (m_actionTypeSelectedIndex >= GPActionManager.s_gpactionTypes.Length) { throw new System.Exception("Out of bound index"); } System.Type actionType = GPActionManager.s_gpactionTypes[m_actionTypeSelectedIndex]; m_handler.AddAction(actionType); }
private void CreateAction() { if (m_actionTypeSelectedIndex >= GPActionManager.s_gpactionTypes.Length) { throw new Exception("Out of bound index"); } EventHandler handler = (EventHandler)target; System.Type actionType = GPActionManager.s_gpactionTypes[m_actionTypeSelectedIndex]; handler.Action = handler.AddAction(actionType); }