Tutorial Bolt 102 - Properties and callbacks, strange behaviour in state.AddCallback()
Options
Johny
✭
in Photon Bolt
Hello.
I am trying to understand the logic behind state callbacks. I copy/pasted the code from Tutorial Bolt 102 - Properties and callbacks but when I debug my scene with 2 clients BOTH of them get the same colour in their renderer's material.
Not sure what is happening and the same code gets called for both clients (the server's cube has a different random color)
I am trying to understand the logic behind state callbacks. I copy/pasted the code from Tutorial Bolt 102 - Properties and callbacks but when I debug my scene with 2 clients BOTH of them get the same colour in their renderer's material.
Not sure what is happening and the same code gets called for both clients (the server's cube has a different random color)
0
Comments
-
We talked about this in chat (random isn't generating different numbers for clients)1
-
The solution is to add "Random.seed = System.Environment.TickCount;"
Thanks Stanchion for your help.0