Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 252 bytes modified
parent
613819e921
commit
120071ea0a
|
@ -822,6 +822,15 @@ GameLib.CustomCode.SnakeBody = function(
|
||||||
GameLib.CustomCode.SnakeBody.prototype = Object.create(GameLib.CustomCode.GameObject.prototype);
|
GameLib.CustomCode.SnakeBody.prototype = Object.create(GameLib.CustomCode.GameObject.prototype);
|
||||||
GameLib.CustomCode.SnakeBody.prototype.constructor = GameLib.CustomCode.GameObject;
|
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() {
|
GameLib.CustomCode.SnakeBody.prototype.clone = function() {
|
||||||
return new GameLib.CustomCode.SnakeBody(
|
return new GameLib.CustomCode.SnakeBody(
|
||||||
this.type,
|
this.type,
|
||||||
|
|
Loading…
Reference in New Issue