예제 #1
0
 void OnBlockMoveComplete()
 {
     for (int i = 0; i < blockFloor.Length; i++)
     {
         //Blocks Move to Spawn Position
         if (Vector2.Distance(blockFloor[i].transform.position, fadePos.transform.position) < 0.1f)
         {
             blockFloor[i].transform.position = spawnPos.position;
             blockFloor[i].SetBlocksActive(true);
             blockFloor[i].ResetBlocksProperty();
             blockFloor[i].ResetLocalPosition();
             blockFloor[i].SetBlocksProperty(BlockType.bomb, 20);
             blockFloor[i].SetBlocksHp(blockHpMinRange, blockHpMaxRange);
         }
     }
     UIMgr.DisplayScore(++currentScore);
     numBlockFloorCreated++;
     StartCoroutine(SettingLevel(numBlockFloorCreated));
     isMoving = false;
 }