Search Unity

Question How to sync local list in Netcode for gameobject?

Discussion in 'Multiplayer' started by frankiwinnie, May 18, 2023.

  1. frankiwinnie

    frankiwinnie

    Joined:
    Dec 1, 2020
    Posts:
    26
    Hello everyone,

    I am trying to synconrinize a local list called cardDeck in two different sessions. The list has all same amount of cards and cards are the same. So when a card has been dealt to a player in one session the card has to be removed from the list in the local player and then the card dealt has to be removed also from the list in other session. I tried to make it with rpc's, tried to access to index with network variable. I came close to achieve however still could not manage to clearly solve the way to do. Could someone please help me on that?