private void OnMaxActionCountChanged(ConfigEntity entity) { _maxActionCount = entity.GetComponent <MaxActionCountComponent>().Value; Apply(); }