private IAbility CreateAbilityByType(AbilityItemConfig config) { switch (config.Type) { case AbilityType.Gun: return(new GunAbility(config)); default: return(StubAbility.Default); } }
public GunAbility([NotNull] AbilityItemConfig config) { _config = config; }