mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-29 00:27:59 +01:00
18 lines
495 B
C#
18 lines
495 B
C#
using System;
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class ServerTime : MonoBehaviour
|
|
{
|
|
// Update is called once per frame
|
|
void OnGUI()
|
|
{
|
|
GUILayout.BeginArea(new Rect(Screen.width/2-100, 0, 200,30));
|
|
GUILayout.Label(string.Format("Time Offset: {0}", PhotonNetwork.ServerTimestamp - Environment.TickCount));
|
|
if (GUILayout.Button("fetch"))
|
|
{
|
|
PhotonNetwork.FetchServerTimestamp();
|
|
}
|
|
GUILayout.EndArea();
|
|
}
|
|
}
|