private void DeleteElement(Actions.ActionElement element) { CollectionUtils.Clear(element.actions); actions.Remove(element.key); }
private void RemoveAction(int index, Actions.ActionElement element) { CollectionUtils.RemoveAt(element.actions, index); if (element.actionIndex >= index) { element.actionIndex--; } if ((element.actions.Count == 0)) { DeleteElement(element); } }
private ActionControl() { actions = new Actions(); }