Few changes

This commit is contained in:
Nikita Dugin
2026-04-08 01:25:20 +03:00
parent e2425d6634
commit 8ec3be6d9c
5 changed files with 269 additions and 9 deletions
@@ -0,0 +1,25 @@
using System;
using FishNet.Connection;
using FishNet.Object;
using FishNet.Object.Synchronizing;
using UnityEngine;
namespace Players
{
public sealed class PlayerNameService : NetworkBehaviour
{
public static event Action<NetworkConnection, string> OnPlayerNameChange;
private readonly SyncDictionary<NetworkConnection, string> _playerNames = new();
private void Awake()
{
_playerNames.OnChange += OnPlayerNamesChange;
}
private void OnPlayerNamesChange(SyncDictionaryOperation op, NetworkConnection key, string value, bool asServer)
{
throw new NotImplementedException();
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0f8a0d6abee44a7282f69c32e04a6f4c
timeCreated: 1775595133