コード例 #1
0
ファイル: Precision.cs プロジェクト: WilliamASease/rogolf
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     playerAttributes.IncreaseControl(0.15f);
     playerAttributes.IncreaseImpact(-0.05f);
 }
コード例 #2
0
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     terrainAttributes.SetMaterial(MaterialType.WATER, MaterialType.BUNKER);
 }
コード例 #3
0
ファイル: PowerUp.cs プロジェクト: WilliamASease/rogolf
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     playerAttributes.IncreasePower(0.1f);
 }
コード例 #4
0
    public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
    {
        TerrainType green = terrainAttributes.GetGreenTerrain();

        green.SetFriction(green.GetFriction() * 4 / 5f);
    }
コード例 #5
0
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     terrainAttributes.RandomizeSwapMap();
 }
コード例 #6
0
    public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
    {
        TerrainType tee = terrainAttributes.GetTeeTerrain();

        tee.SetLieRate(tee.GetLieRate() + 0.05f);
    }
コード例 #7
0
ファイル: Game.cs プロジェクト: WilliamASease/rogolf
 public void SetTerrainAttributes(TerrainAttributes terrainAttributes)
 {
     this.terrainAttributes = terrainAttributes;
 }
コード例 #8
0
    public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
    {
        TerrainType bunker = terrainAttributes.GetBunkerTerrain();

        bunker.SetFriction(bunker.GetFriction() * 5 / 4f);
    }
コード例 #9
0
 public abstract void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes);
コード例 #10
0
 public override void Apply(PlayerAttributes playerAttributes, TerrainAttributes terrainAttributes)
 {
     playerAttributes.IncreaseImpact(-0.1f);
 }