public static void Event(LTREvent gameEvent, bool isCallback = false) { if (hasInstance) { if (Instance.OnPPEvent != null) { Instance.OnPPEvent(gameEvent); } if (Instance.alsoCallPPEventsAsStrings && !isCallback) { callPPEventAsString(gameEvent); } } }
static void callPPEventAsString(LTREvent gameEvent) { Event(gameEvent.ToString(), isCallback: true); }