Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Unity Multiplayer card game problem

Discussion in 'Multiplayer' started by Ido21, Oct 16, 2022.

  1. Ido21

    Ido21

    Joined:
    Jul 6, 2021
    Posts:
    1
    Hi, I'm trying to create my first multiplayer game using mirror. My game is a Multiplayer card game very similar to war.
    I'm having a big problem when trying to spawn the cards in the correct player hand view. The game will have 2-4 players, every player have Hand View in the screen sides.

    All clients should see the other clients Hand View(Hand View should contain card objects as children's)
    I tried to send Command to get cards from pile, and then ClientRpc call for presenting the cards in the correct hand on all clients, with no success.

    Hierarchy example:
    Match Controller:
    HandViews: PlayerHandView, EnemyHandViewUp, EnemyHandViewRight...

    Any suggestion/examples, or questions if something is not clear.
    Thanks.