unity-webgl
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"main": "dist/UnityWebgl.min.js", | ||
@@ -14,0 +14,0 @@ "module": "dist/UnityWebgl.esm.js", |
@@ -18,3 +18,3 @@ import EventSystem from './Events.js' | ||
if (typeof window.createUnityInstance === 'function') { | ||
console.warn('UnityWebgl: Unity Loader already exists') | ||
// console.warn('UnityWebgl: Unity Loader already exists') | ||
resolve && resolve() | ||
@@ -172,11 +172,11 @@ } | ||
).then(unity => { | ||
ctx.emit('created') | ||
ctx.unityInstance = unity | ||
ctx.unityInstance = unity | ||
ctx.emit('created', unity) | ||
}).catch(err => { | ||
ctx.unityInstance = null | ||
ctx.emit('error', err) | ||
ctx.unityInstance = null | ||
}) | ||
} catch (err) { | ||
ctx.unityInstance = null | ||
ctx.emit('error', err) | ||
ctx.unityInstance = null | ||
} | ||
@@ -183,0 +183,0 @@ }, |
62055
0.02%