// Update is called once per frame void Update() { if (!isConnected) { if (connectionProvider != null) { connectionProvider.Update(); } return; } else if (remotePath != null) { if (didStart == false) { didStart = true; remotePath.Start(connectionProvider, screenStreamer); MainMenu.SetActive(false); } remotePath.UpdatePath(); } }