Exemple #1
0
        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);
        }