How to pass the values of the timer or hours in multiplayer that the values were odnakovi all users?

How to pass the values of the timer or hours in multiplayer that the values were odnakovi all users? Thank you!

odnakovi, you mean the same? :slight_smile:
probably Time.timeSinceLevelLoad could help you

parviz, How to pass the values of the timer or hours in multiplayer, so that the values were the same for all users?
Please help! For the second night I suffer. Thank you! As Time.timeSinceLevelLoad to use? It displays nothing.

can you share that part of your code with the time? i cant’ guess what is going on there…

How it on multiplayer pass for all to see the same time. Thank you! This code:

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class GameTime : MonoBehaviour {

public int needMinutes = 5;
public int minutes = 0;
public int seconds = 0;

void Start () {

}

void Sec() {
seconds++;
}

void Update () {

if(seconds > 59) {
minutes++;
seconds = 0;
}

if(!IsInvoking(“Sec”)) {
Invoke(“Sec”,1);
}

}

void OnGUI() {

GUI.Label(new Rect(200,200,200,45),"Time: “+ minutes+” : "+ seconds);

}

}

first, watch this:
http://unity3d.com/learn/tutorials/modules/beginner/scripting/delta-time

then, this:
http://cgcookie.com/unity/2011/12/20/introduction-to-networking-in-unity/