//Generate separated voxel object IEnumerator GenerateVoxel(Vector3Int position, int type, float waitTime) { Voxel voxel = new Voxel(position, type); yield return(new WaitForSeconds(waitTime)); voxel.DestroyVoxel(); }