Need help with syncing player data
I can't seem to get the float values of player data synced .. I have tried it with OnPhotonSerializeView but only the clients are syncing and host is left out .. and I can't find any examples of someone actualy syncing float values across 2 players .. I'm making a game where I need to compare 2 float values and I can't get it to work .. can someone here help me out? .. or at least point me in right direction
Quick example of problem that I'm facing
Client side
(host) Player1 float = 1200;
(client) Player2 float = 240.23;
Host side
(host) Player1 float = 1200;
(client) Player2 float = 0;
Quick example of problem that I'm facing
Client side
(host) Player1 float = 1200;
(client) Player2 float = 240.23;
Host side
(host) Player1 float = 1200;
(client) Player2 float = 0;
0