Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Best Practices for Photon & Event Delegates in Unity3d?

$
0
0
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.

Viewing all articles
Browse latest Browse all 15755

Trending Articles