Best Practices for Photon & Event Delegates in Unity3d?

Options
I have an RPC call set up like this: http://pastebin.com/biTsvUMb

Is this the "correct" way of doing what I want to do? In essence, send a command to an object, and then update that object across all clients.

In this example my prefab has two 3d objects, a cube and a sphere. When I click I want the square object to send a message to the sphere and tell it to change to a specific color; and then update all clients that the sphere has changed color.

My approach works as far as I can tell, but I cannot vouch for it's correctness.

Comments

  • jeanfabre
    Options
    Hi,

    This all looks good. have you tested and deployed and witness the color changing properly?

    Bye,

    Jean