Day/Night Cycle Syncing [Closed]

Options
Hello,

I have my day and night cycle script but how would i go about syncing the time of day between all the players? I have tried attaching a photon view to the day night cycle game object and making it observe the script but that didn't work. Would i do it using RPC's? A different way?

Thanks,
Joseph

Comments

  • vadim
    Options
    Hi,

    You may want RPC if handling of switch between day and night required.
    Or use room custom property meaning what time of day currently. It works as variable shared between clients.
  • Tobias
    Options
    There is a round timer script in the PUN project. This sets a property with some start time. Based on that, the current time and the length of a "day" you can calculate the current state easily.