Calling a function once every x time?

How would I go about doing this with Photon? I think I'd need to get the server time via a timestamp, then compare it to last time, but I'm not entirely sure how I'd get the timestamp from photon.


  • PhotonNetwork.time should help you. It's pretty accurate (+/-20ms when compared to server or other clients).
    You could set a property for the room that tells the clients the timestamp when the method should be called for the first time. Then it's multiples of the interval to call it again...
  • Hmm, was sure I tried something like that. must've mistyped something, haha