} // public void update /// <summary> /// добавление действия /// </summary> /// <returns>возвращает ссылку на добавленное действие</returns> public als_jump_action add_action(string name) { var a = new als_jump_action(); _actions.Remove(name); _actions.Add(name, a); return(a); } // add_action
} // remove_jump_reason protected als_jump_action set_as_active(als_jump_action action) { _active_action = action; if (_active_action == null) { _active_action = _default_action; } if (_active_action != null) { _active_action.start(); } return(_active_action); }