- Home /
Manage timer within connected players
I am working on roulette multiplayer game at present. All functionality of game working fine now but now at this stage of game I have to implement time for game.
For example player has 60 seconds to put their bets otherwise they loose change to put bet and start wheel spinning. I want some suggestions from other members regarding time management within network.
As per my consideration I have to use photonview or networkview to pass continuous timer data over network.
Please give some hints here.
Answer by tobiass · Sep 04, 2014 at 11:57 AM
You can use the synced network timestamp PhotonNetwork.time. Set the wheel spin time as property when the betting begins and all clients can end the bet-time based on this.
In the PUN package, you find the component "InRoomRoundTimer". This is a basic implementation and might help, too.
I understand your first two lines but can't understand you talked about "InRoomRoundTimer". So please give some more information about that.
Your answer
Follow this Question
Related Questions
How can I instantiate different prefabs for owner and proxy using photon? 2 Answers
Unity multiplayer solutions: Photon, Unity Networking - what else and in what way is good? 0 Answers
Photon Viking Demo error 3 Answers
Photon Networking: RPC call doesn't work over other clients 0 Answers
Unity3D Photon movement synchronization 0 Answers