예제 #1
0
 void Configure()
 {
     DeleteChunks();
     _playerTransorm = GameObject.FindGameObjectWithTag("Player").transform;
     _spawn          = 0f;
     for (int i = 0; i < _chunksAmount; i++)
     {
         Spawn();
         Vector3 currPos = Vector3.up * _spawn;
         _coinGenerator.CoinSpawn(currPos.y);
     }
 }