Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Want each client to set a parameter on network object once its created

$
0
0
So our master client creates a network object. There is one parameter in this network object which I want to change for each client depending on the state of that particular client. Initially I tried putting the check in the Start() method but obviously that start method is only run by whoever initially instantiates the network object.

Is there a callback for some other method that every single client will run as soon as it receives notification that a new network object has been created?

I guess alternatively I could try putting something that is run the first time the Update() method is called but that seems really messy. Any advice appreciated. Thanks.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>