// Use this for initialization void Start() { _knownClients = new Dictionary <int, ClientInfo>(); SharedLogger.ListenToMessages(LogMessageHandler); OSCManager.Initialize("239.1.2.3"); OSCManager.ListenToAddress("/unity/client/show/join", OnJoinShow); OSCManager.ListenToAddress("/unity/client/status", OnClientStatus); OSCManager.ListenToAddress("/unity/client/restarting", OnClientRestarting); if (Debug.isDebugBuild && File.Exists("show_debug.json")) { LoadJSON(File.ReadAllText("show_debug.json")); } else if (!string.IsNullOrEmpty(JSON_URL)) { StartCoroutine(FetchShowScript()); } }