Tutorial Bolt 102 - Properties and callbacks, strange behaviour in state.AddCallback()

Options
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)

Comments

  • stanchion
    Options
    We talked about this in chat (random isn't generating different numbers for clients)
  • Johny
    Options
    The solution is to add "Random.seed = System.Environment.TickCount;"
    Thanks Stanchion for your help.