Exemplo n.º 1
0
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     RandomizeTerrainType(terrainAttributes.GetTeeTerrain());
     RandomizeTerrainType(terrainAttributes.GetGreenTerrain());
     RandomizeTerrainType(terrainAttributes.GetFairwayTerrain());
     RandomizeTerrainType(terrainAttributes.GetRoughTerrain());
     RandomizeTerrainType(terrainAttributes.GetBunkerTerrain());
     RandomizeTerrainType(terrainAttributes.GetWaterTerrain());
 }
Exemplo n.º 2
0
    public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
    {
        TerrainType green = terrainAttributes.GetGreenTerrain();

        green.SetFriction(green.GetFriction() * 4 / 5f);
    }