コード例 #1
0
 public CubeBuilder(Transform cubesParent, GameObject cubesPrefab, float sideCube, PositionToSpawn positionToSpawn)
 {
     this.cubesParent     = cubesParent;
     this.cubesPrefab     = cubesPrefab;
     this.sideCube        = sideCube;
     this.positionToSpawn = positionToSpawn;
 }
コード例 #2
0
 public CoinBuilder(Transform coinsParent, GameObject coinsPrefab, int maxLengthAmountCoins,
                    int maxWidthAmountCoins, float sideCoin, PositionToSpawn positionToSpawn)
 {
     this.coinsParent          = coinsParent;
     this.coinsPrefab          = coinsPrefab;
     this.maxLengthAmountCoins = maxLengthAmountCoins;
     this.maxWidthAmountCoins  = maxWidthAmountCoins;
     this.sideCoin             = sideCoin;
     this.positionToSpawn      = positionToSpawn;
 }