Summary
As we bring the chapter to a close, we should reflect on how much we've accomplished and what we can build with that new knowledge. We know how to use simple if-else
checks and more complex switch
statements, allowing decision making in code. We can create variables that hold collections of values with arrays and lists or key-value pairs with dictionaries. This allows complex and grouped data to be stored efficiently. We can even choose the right looping statement for each collection type, while carefully avoiding infinite-loop crashes.
If you're feeling overloaded, that's perfectly OK—logical, sequential thinking is all part of exercising your programming brain.
The next chapter will complete the basics of C# programming with a look at classes, structs, and object-oriented programming (OOP). We'll be putting everything we've learned so far into these topics, preparing for our first real dive into understanding and controlling objects in the Unity...