// Update is called once per frame void Update() { if (webBuild) { if (set && !GlobalVariables.reset) { GetData(roomID); set = false; ready = true; } else if (!set && GlobalVariables.reset) { GetData(GlobalVariables.savedRoomID); set = true; ready = true; } } if (game.RoomComplete() && !gameFinished) { GetCountData(); gameFinished = true; } }