mirror of
https://github.com/wassname/phaser.git
synced 2026-10-29 13:21:16 +08:00
Fixed the tilemap pre/post update hooks.
This commit is contained in:
1 parent
ecf61fc80c
commit
8a85155c08
3 files changed
+30
No files matched your search
@@ -487,6 +487,24 @@ module Phaser {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be over-ridden if required
|
||||
*/
|
||||
public preUpdate() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be over-ridden if required
|
||||
*/
|
||||
public update() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be over-ridden if required
|
||||
*/
|
||||
public postUpdate() {
|
||||
}
|
||||
|
||||
public destroy() {
|
||||
|
||||
this.texture = null;
|
||||
|
||||
@@ -8170,6 +8170,12 @@ var Phaser;
|
||||
if (typeof layer === "undefined") { layer = this.currentLayer.ID; }
|
||||
this.layers[layer].putTile(x, y, index);
|
||||
};
|
||||
Tilemap.prototype.preUpdate = function () {
|
||||
};
|
||||
Tilemap.prototype.update = function () {
|
||||
};
|
||||
Tilemap.prototype.postUpdate = function () {
|
||||
};
|
||||
Tilemap.prototype.destroy = function () {
|
||||
this.texture = null;
|
||||
this.transform = null;
|
||||
|
||||
@@ -8170,6 +8170,12 @@ var Phaser;
|
||||
if (typeof layer === "undefined") { layer = this.currentLayer.ID; }
|
||||
this.layers[layer].putTile(x, y, index);
|
||||
};
|
||||
Tilemap.prototype.preUpdate = function () {
|
||||
};
|
||||
Tilemap.prototype.update = function () {
|
||||
};
|
||||
Tilemap.prototype.postUpdate = function () {
|
||||
};
|
||||
Tilemap.prototype.destroy = function () {
|
||||
this.texture = null;
|
||||
this.transform = null;
|
||||
|
||||
Reference in new issue
Block a user