private GameObject HandoffNextBlock(NextBlocks next) { if (next == null) { return(null); } if (infinite_mode) { checker.DisplayNextBlock(next.after); } return(next.next); }
public NextBlocks GetNextBlock() { block_ind++; if (GetComponentInParent <UFO>().infinite_mode) { NextBlocks next = new NextBlocks(BlockSwitch(random_block_list[block_ind]), BlockSwitch(random_block_list[block_ind + 1])); return(next); } else if (block_ind < blocks.Count) { NextBlocks next = new NextBlocks(BlockSwitch(blocks[block_ind])); return(next); } else { return(null); } }