public static void InvokePlayerLeave(ReferenceHub hub, string userId, GameObject obj) { OnPlayerLeave onPlayerLeave = PlayerLeaveEvent; if (onPlayerLeave == null) { return; } PlayerLeaveEvent ev = new PlayerLeaveEvent() { Player = hub }; onPlayerLeave?.Invoke(ev); }
public static void InvokePlayerLeave(ReferenceHub player) => PlayerLeaveEvent.InvokeSafely(new PlayerLeaveEvent() { Player = player });