import {default as createUnityInstance} from './ld46.loader.js'; import build_size_data from './ld46.data.gz'; import buildSizeFramework from './ld46.framework.js.gz'; import buildSizeWasm from './ld46.wasm.gz'; console.log("data "+build_size_data); console.log("framework "+buildSizeFramework); console.log("wasm "+buildSizeWasm); export default class { constructor(){ this.title = "What the firetruck"; this.author = "dvdfu"; this.authorUrl = "https://github.com/dvdfu"; } initialize(container){ container.append(""); createUnityInstance(document.querySelector("#unity-canvas"), { dataUrl: __webpack_public_path__ + "ld46.data.gz", frameworkUrl: __webpack_public_path__ + "ld46.framework.js.gz", codeUrl: __webpack_public_path__ + "ld46.wasm.gz", streamingAssetsUrl: "StreamingAssets", companyName: "dvdfu", productName: "ld46", productVersion: "0.1", }); } }