Unity and game development
This section collects Unity and C# notes with explanations that can be understood without launching an editor.
Topics to document
Section titled “Topics to document”- Game loops and the role of
UpdateversusFixedUpdate - Working with
MonoBehaviourand components - Choosing data structures for runtime systems
- Separating core algorithms from Unity scene objects
- Save data and persistence
Example: keep core logic independent
Section titled “Example: keep core logic independent”public static int GetHighestScore(IEnumerable<int> scores){ return scores.Max();}Keeping algorithms independent of Unity APIs makes them easier to unit test and reuse.