I just got done watching the final episode of Clannad: After Story (by final episode I mean episode 22) and I'm a tad bit confused. I think some of it just went over my head. I get that there's a dream world and the girl in it is Ushio and I think the Robot is Tomoya if I'm not mistaken. But I was a bit confused about the dream-like sequence where Tomoya tells Nagisa that he doesn't regret meeting her. Did that just occur in his mind after Ushio died or something? And as for how it turned out, did it end that way because that was Tomoya's wish? Thanks for clarifications.