diff --git a/72d6a2a3kc.js b/72d6a2a3kc.js index 3d1e4fe..13bf168 100644 --- a/72d6a2a3kc.js +++ b/72d6a2a3kc.js @@ -10,11 +10,13 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.star = this.entityLoaded.star; this.burger = this.entityLoaded.burger; this.parcel = this.entityLoaded.parcel; + this.santa = this.entityLoaded.santa; this.bull.instance.visible = false; this.star.instance.visible = false; this.burger.instance.visible = false; this.parcel.instance.visible = false; + this.santa.instance.visible = false; /** * This component is initializing - set the total time to 0 @@ -44,7 +46,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.spawnEnemy = function() { var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5); - var meshType = GameLib.Utils.GetRandomIntInclusive(1, 4); + var meshType = GameLib.Utils.GetRandomIntInclusive(1, 5); var y = GameLib.Utils.GetRandomIntInclusive(2, 10); @@ -69,6 +71,10 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { mesh = this.parcel.clone(); material = this.parcel.materials[0].clone(); speed = 0.5; + } else if (meshType === 5) { + mesh = this.santa.clone(); + material = this.santa.materials[0].clone(); + speed = 0.5; } else { console.log('unknown mesh type : ' + meshType); }