Пример #1
0
        void OnPlayerInit(BasePlayer player)
        {
            var playerData = FindPlayerData(player.userID);

            if (playerData != null)
            {
                if (!playerData.Names.Contains(player.displayName))
                {
                    playerData.Add(player.displayName);
                }
            }
            else
            {
                PlayerData p = new PlayerData(player.userID);
                p.Add(player.displayName);
                data.Add(p);
            }
        }