private IAbility CreateAbilityByType(AbilityItemConfig config)
        {
            switch (config.Type)
            {
            case AbilityType.Gun:
                return(new GunAbility(config));

            default:
                return(StubAbility.Default);
            }
        }
Пример #2
0
 public GunAbility([NotNull] AbilityItemConfig config)
 {
     _config = config;
 }