void Start() { _foodConfig = GetComponentInParent <FoodConfig>(); var sprite = _foodConfig.GetFoodSprite(Type); Instantiate(sprite, _spriteParent.transform); }
public MailController(IOptions <FoodConfig> cfg) { config = (FoodConfig)cfg.Value; }
public EventGridPublisher(IConfiguration config) { cfg = config.Get <FoodConfig>(); }
public MailController(IConfiguration cfg) { var val = cfg.GetValue <string>("App:AuthEnabled"); config = cfg.Get <FoodConfig>(); }