How do I sync a script over Photon Network in Unity?
Options
I have created a Game class which handles all transactions of a game (ChessBoard.script) (whose turn it is, allowed moves, select piece). I would like to create one of these objects and keep it synced between both clients of a Photon Unity network.
and in my objects for example (King, Queen, etc) each of them also have scripts.
The question is how do i keep them synced between both clients of a Photon Unity network.
I got my ChessBoard.script (I want to sync all the data of this script to everyone in the room)
How will I sync ChessBoard.script to the other client? Thanks.
and in my objects for example (King, Queen, etc) each of them also have scripts.
The question is how do i keep them synced between both clients of a Photon Unity network.
I got my ChessBoard.script (I want to sync all the data of this script to everyone in the room)
How will I sync ChessBoard.script to the other client? Thanks.
0
Comments
-
You will need to write packets that you pass between them. Look into SendMessage0