protected override void Execute(List <GameEntity> entities) { foreach (var e in entities) { _panel.SetWeatherName(_setting.GetData(e.weather.Type).Name); } }
public void CreateWeather() { _weather = GetRandomWeather(); var costType = _setting.GetData(_weather).Cost; CreateWeatherCost(costType); }
public void Execute_WeatherStormAdded_DisplayNameOfWeatherStom() { _contexts.game.SetWeather(Weather.Storm); _systems.Execute(); Assert.AreEqual(_setting.GetData(Weather.Storm).Name, _panel.WeatherNameText.text); }