mirror of
https://github.com/wassname/phaser.git
synced 2026-07-19 11:26:26 +08:00
Fixed the tilemap pre/post update hooks.
This commit is contained in:
@@ -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