diff --git a/Build/WebGL.data b/Build/WebGL.data index 8f94c69..72a5080 100644 Binary files a/Build/WebGL.data and b/Build/WebGL.data differ diff --git a/ServiceWorker.js b/ServiceWorker.js deleted file mode 100644 index 5295d3b..0000000 --- a/ServiceWorker.js +++ /dev/null @@ -1,33 +0,0 @@ -const cacheName = "Naziya, Romina, Sheikh-Noctrun-0.0.126"; -const contentToCache = [ - "Build/WebGL.loader.js", - "Build/WebGL.framework.js", - "Build/WebGL.data", - "Build/WebGL.wasm", - "TemplateData/style.css" - -]; - -self.addEventListener('install', function (e) { - console.log('[Service Worker] Install'); - - e.waitUntil((async function () { - const cache = await caches.open(cacheName); - console.log('[Service Worker] Caching all: app shell and content'); - await cache.addAll(contentToCache); - })()); -}); - -self.addEventListener('fetch', function (e) { - e.respondWith((async function () { - let response = await caches.match(e.request); - console.log(`[Service Worker] Fetching resource: ${e.request.url}`); - if (response) { return response; } - - response = await fetch(e.request); - const cache = await caches.open(cacheName); - console.log(`[Service Worker] Caching new resource: ${e.request.url}`); - cache.put(e.request, response.clone()); - return response; - })()); -}); diff --git a/TemplateData/MemoryProfiler.png b/TemplateData/MemoryProfiler.png new file mode 100755 index 0000000..2e264c7 Binary files /dev/null and b/TemplateData/MemoryProfiler.png differ diff --git a/TemplateData/fullscreen-button.png b/TemplateData/fullscreen-button.png new file mode 100755 index 0000000..e7b6496 Binary files /dev/null and b/TemplateData/fullscreen-button.png differ diff --git a/TemplateData/icons/unity-logo-dark.png b/TemplateData/icons/unity-logo-dark.png deleted file mode 100755 index 0229335..0000000 Binary files a/TemplateData/icons/unity-logo-dark.png and /dev/null differ diff --git a/TemplateData/icons/unity-logo-light.png b/TemplateData/icons/unity-logo-light.png deleted file mode 100755 index 3522041..0000000 Binary files a/TemplateData/icons/unity-logo-light.png and /dev/null differ diff --git a/TemplateData/style.css b/TemplateData/style.css index 374f601..10c328b 100644 --- a/TemplateData/style.css +++ b/TemplateData/style.css @@ -1,8 +1,16 @@ body { padding: 0; margin: 0 } -#unity-container { position: fixed; width: 100%; height: 100%; } -#unity-canvas { width: 100%; height: 100%; background: #FFFFFF } +#unity-container { position: absolute } +#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) } +#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% } +#unity-canvas { background: #FFFFFF } +.unity-mobile #unity-canvas { width: 100%; height: 100% } #unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none } #unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center } -#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center } +#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center } #unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center } +#unity-footer { position: relative } +.unity-mobile #unity-footer { display: none } +#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center } +#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px } +#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center } #unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none } diff --git a/TemplateData/webgl-logo.png b/TemplateData/webgl-logo.png new file mode 100755 index 0000000..338b1ae Binary files /dev/null and b/TemplateData/webgl-logo.png differ diff --git a/TemplateData/webmemd-icon.png b/TemplateData/webmemd-icon.png new file mode 100755 index 0000000..ba3aae9 Binary files /dev/null and b/TemplateData/webmemd-icon.png differ diff --git a/index.html b/index.html index 6718912..e3f146a 100644 --- a/index.html +++ b/index.html @@ -6,10 +6,9 @@