Unity - multiplayer game using mirror

660 views Asked by At

enter image description hereI'm using mirror for local server between multiply gamePlayers. I have a problem sync non players objects. I want each Player to have a button to be able to rool two dices and that the player on host will be able to see what client do and apposite. I'm still confused , don't know when to use [Command] and [ClientRpc] btw, I create my dices like that, and called this on the method OnStartServer():

GameObject newPrize = Instantiate(prizePrefab.gameObject, spawnPosition, Quaternion.identity); // add this game object to all clients NetworkServer.Spawn(newPrize);

Thank you so much!

0

There are 0 answers