Exemplo n.º 1
0
    Material getMaterial(BlockController.Type t)
    {
        switch (t)
        {
        case BlockController.Type.NORMAL:
            return(blockMaterial);

        case BlockController.Type.DIE:
            return(blockDieMaterial);

        case BlockController.Type.FINISH:
            return(blockFinishMaterial);

        default:
            return(blockMaterial);
        }
    }
Exemplo n.º 2
0
 public BlockItem(float sz, BlockController.Type t)
 {
     size = sz;
     type = t;
 }