Languages features such as events and delegates might be too advanced for beginners, so if you consider yourself in that category, don't worry; you can still enjoy this book. Just read the beginner-level chapters such as the ones that explain patterns such as Singleton, State, Facade, and Adapter.
The following C# advanced language features are fundamental to the optimal implementation of some design patterns that we will be implementing in the upcoming chapters:
- Static: Methods and members of a class with the static keyword can be accessed directly with its name and without initializing an instance. Static methods and members are helpful because they are easily accessible from anywhere in your code. The following example showcases a class that uses the keyword to establish a globally accessible event bus:
using UnityEngine.Events;
using System.Collections.Generic;
namespace Chapter.EventBus
{
public class RaceEventBus
{
private static readonly
...