Hello,
So, here’s the problem. Time.time is different on two networked device.
private var m_StartTime : float;
private var m_CurrentTime : float;
function StartLevel()
{
m_StartTime = Time.time;
m_TimerOn = true;
}
function OnGUI()
{
m_CurrentTime = ( Time.time - m_StartTime );
Debug.Log( m_CurrentTime );
}
We have a start() function that stores the Time.time at the start of the level. on each frame we calculate the difference between the current time and the start time (for display). When displaying that value on two networked device, they have different values. Worse, the difference between the two values is not constant.
Any ideas or thought on how to correct that?