more layer work

This commit is contained in:
Jeena 2014-08-30 16:02:41 +02:00
parent b5c70687d8
commit 57135f3acc
7 changed files with 54 additions and 31 deletions

View file

@ -13,15 +13,15 @@ function (Parent, PIXI) {
Layer.prototype = Object.create(Parent.prototype);
Layer.prototype.getContainer = function() {
return this.contianer;
return this.container;
};
Layer.prototype.show = function() {
this.contianer.visible = true;
this.container.visible = true;
};
Layer.prototype.hide = function() {
this.contianer.visible = false;
this.container.visible = false;
};
Layer.prototype.addMesh = function(mesh) {