コード例 #1
0
 void SpawnBlock()
 {
     if (currentIndex < pool.Length && (activeBlock == null || !activeBlock.getIsActive()))
     {
         activeBlock = pool[currentIndex];
         activeBlock.gameObject.SetActive(true);
         activeBlock.setMoveAtTime(moveAtTime);
         activeBlock.ActivateBlocks();
         currentIndex++;
     }
 }