Hi...I have been reading a tutorial on screen manager using C# but it is so confusing to understand.
Screen Manager With XNA - Part 2 - Game Programming Tutorials | Dream.In.Code
in the GameScreen class, the guy declared a list of game components. And then iterates through them to do whatever..but I don't see anywhere outside the class..where he actually adds stuff to the lists.
for example in the class StartScreen..he creates an instance of the MenuComponent class
and adds it to the Game Component class doing Components.Add
but not the inherited component when I uncomment the the foreach loops nothing happens..I have no freaking idea how it is working...and how everything is linked.
how was stuff added to the list in the GameScreen components object?