common-game
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "common-game", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "common-game.js", |
@@ -48,6 +48,6 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine"; | ||
if (!!this[`${name}Container`]) { | ||
try{ | ||
try { | ||
this[`${name}Container`].destroy(); | ||
this[`${name}Container`] = null; | ||
}catch(e){ | ||
} catch (e) { | ||
console.log(e) | ||
@@ -156,3 +156,4 @@ } | ||
} | ||
sprite.scale.set(1, 1); | ||
let scale = Object.assign({ x: 1, y: 1 }, tImg.scale); | ||
sprite.scale.set(scale.x, scale.y); | ||
@@ -159,0 +160,0 @@ sprite.type = tImg.type || ""; |
40138
1131