コード例 #1
0
    public virtual void ConfirmModifications()
    {
        _placementManager.PlaceStructuresOnTheMap(_structuresToBeModified.Values);
        Type structureType = _structureData.GetType();

        foreach (var keyValuePair in _structuresToBeModified)
        {
            _grid.PlaceStructureOnTheGrid(keyValuePair.Value, keyValuePair.Key, GameObject.Instantiate(_structureData));
            StructureEconomyManager.CheckStructureTypeForCreationPreparation(structureType, keyValuePair.Key, _grid);
        }
        ResetHelpersData();
    }
コード例 #2
0
    public virtual void ConfirmModifications()
    {
        placementManager.PlaceStructuresOnTheMap(structuresToBeModified.Values);
        Type structureType = structureData.GetType();

        foreach (var keyValuePair in structuresToBeModified)
        {
            grid.PlaceStructureOnTheGrid(keyValuePair.Value, keyValuePair.Key, GameObject.Instantiate(structureData));
            StructureEconomyManager.CreateStructureLogic(structureType, keyValuePair.Key, grid);
        }
        ResetHelpersData();
    }