Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 252 bytes modified

beta.r3js.org
-=yb4f310 2018-03-23 15:02:02 +01:00
parent 613819e921
commit 120071ea0a
1 changed files with 9 additions and 0 deletions

View File

@ -822,6 +822,15 @@ GameLib.CustomCode.SnakeBody = function(
GameLib.CustomCode.SnakeBody.prototype = Object.create(GameLib.CustomCode.GameObject.prototype);
GameLib.CustomCode.SnakeBody.prototype.constructor = GameLib.CustomCode.GameObject;
GameLib.CustomCode.SnakeBody.prototype.dispose = function() {
GameLib.CustomCode.GameObject.prototype.dispose.call(this);
if (this.backupMesh) {
this.backupMesh.geometry = null;
this.backupMesh.materials = null;
this.backupMesh.remove();
}
}
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
return new GameLib.CustomCode.SnakeBody(
this.type,