Skip to content

Unity and game development

This section collects Unity and C# notes with explanations that can be understood without launching an editor.

  • Game loops and the role of Update versus FixedUpdate
  • Working with MonoBehaviour and components
  • Choosing data structures for runtime systems
  • Separating core algorithms from Unity scene objects
  • Save data and persistence
C# | Core logic
public static int GetHighestScore(IEnumerable<int> scores)
{
return scores.Max();
}

Keeping algorithms independent of Unity APIs makes them easier to unit test and reuse.