Two people were initially shot in the dorms. They didn't close the campus but sent out an email about the shootings (and I'm assuming they knew the gunman was still at large).
Two hours later, the gunman entered the Engineering/Science building and killed 30 more people then killed himself. In adition, 15 others were injured.
BBC report.