﻿
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;

[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
public class OSSSyncButton : UdonSharpBehaviour {
	public Timekeeper timekeeper;
	public GameObject button;

	void Start() {
		if(Networking.LocalPlayer == null) return;
		if(Networking.LocalPlayer.isMaster) button.SetActive(false);
	}

	void Interact() {
		timekeeper.SyncToMaster();
	}
}
