コード例 #1
0
    private GameObject HandoffNextBlock(NextBlocks next)
    {
        if (next == null)
        {
            return(null);
        }

        if (infinite_mode)
        {
            checker.DisplayNextBlock(next.after);
        }
        return(next.next);
    }
コード例 #2
0
 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);
     }
 }