No company “only realizes” anything when it comes to their financials. They had forecasts for the entire year, and accountants keeping track of that shit on daily basis. Every CEO gets together with their CFO on the regular. They know exactly where the company is headed financially, and they prepare what they are going to say to their shareholders quarterly.
Layoffs like this are always planned. The fact that they aren’t capitalizing on the Unity fuck-up to make up the difference shows their ineptitude.