for (var item in items) {
(item as GameObject).SendMessage("Activate");
}
I decided to come back to this after a while. And it took me an hour and a half but this is what works. Jessy and Eric5h5, thank you both so much for helping me to get the correct answer.