private void Add_AtAllClients(NameNetworkData data) { // if (!NetworkMagic.IsServer) // return; itemListServer.Add(data.Name); OnItemAdd?.Invoke(data.Name); }
private void Remove_AtAllClients(NameNetworkData data) { // if (!NetworkMagic.IsServer) // return; if (!itemListServer.Contains(data.Name)) { DebugLog.Warning($"Tried to remove an item from empty list."); } itemListServer.Remove(data.Name); OnItemRemove?.Invoke(data.Name); }