public void Initialize_CanSetCostForAllResourceType()
        {
            _systems.Initialize();

            foreach (var res in _setting.DataList.Select(d => d.Type))
            {
                _panel.SetCost(res, 0);
            }
        }
Exemplo n.º 2
0
 protected override void Execute(List <GameEntity> entities)
 {
     foreach (var e in entities)
     {
         var costMap = e.weatherCost.ResourcesCost;
         foreach (var type in costMap.Keys)
         {
             _panel.SetCost(type, costMap[type]);
         }
     }
 }