// x protected virtual void OnEventName(EventArgs e) { EventName?.Invoke(this, e); }
public static event Action EventName; // <-- This is what the listener adds to. public static void FunctionName() // <-- This is what you run to trigger events. { EventName?.Invoke(); }