function UnityProgress(gameInstance, progress) { if (!gameInstance.Module) return; // Create and display the 3D text if not already created if (!gameInstance.vodogameText) { gameInstance.vodogameText = document.createElement("div"); gameInstance.vodogameText.className = "vodogame-text"; gameInstance.vodogameText.innerText = "VODOGAME"; gameInstance.container.appendChild(gameInstance.vodogameText); } // Create and display the loading dots if not already created if (!gameInstance.loadingDots) { gameInstance.loadingDots = document.createElement("div"); gameInstance.loadingDots.className = "loading-dots"; for (let i = 0; i < 5; i++) { const dot = document.createElement("span"); gameInstance.loadingDots.appendChild(dot); } gameInstance.container.appendChild(gameInstance.loadingDots); } // Hide the elements once the progress is complete if (progress === 1) { gameInstance.vodogameText.style.display = "none"; gameInstance.loadingDots.style.display = "none"; } }