private static void OnServerConnected(CSteamID steamId) { var basePlayer = steamId.ToBasePlayer(); basePlayer.Player.gameObject.TryAddComponent <BasePlayerEvents>(); basePlayer.Player.gameObject.TryAddComponent <BasePlayerMovement>(); basePlayer.Player.gameObject.TryAddComponent <BasePlayerFeatures>(); OnPlayerBeforeConnected?.TryInvoke(basePlayer); }