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
...