diff --git a/21g30t1e75.js b/21g30t1e75.js index c964ead..e61c339 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -18,6 +18,11 @@ this.imageEnd = GameLib.EntityManager.Instance.findComponentById('swkla3wpp'); this.imageBodyPatty = GameLib.EntityManager.Instance.findComponentById('01r51k9ptr'); this.imagePatty = GameLib.EntityManager.Instance.findComponentById('4lf0fw24su'); +/** + * Other Objects (Scene) + */ +this.scene = GameLib.EntityManager.Instance.findComponentById('pllp034hsj'); + GameLib.CustomCode.prototype.createMaterial = function(image) { var diffuseMap = new GameLib.D3.Texture.Image( this.runtime.graphics, @@ -44,7 +49,7 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) { } ) - + this.scene.addClone(mesh); }.bind(this) @@ -52,7 +57,8 @@ GameLib.CustomCode.prototype.createGameMesh = function(image) { * Create our objects */ this.meshHead = this.createGameMesh(this.imageEnd); -this.meshBodyPatty = this.createGameMesh(this.imagePatty); +this.meshPatty = this.createGameMesh(this.imagePatty); +this.meshBodyPatty = this.createGameMesh(this.imageBodyPatty); GameLib.Event.Subscribe( GameLib.Event.GAME_START,