Spaces:
Running
Running
File size: 815 Bytes
4ee4376 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
export default class query {
constructor (options) {
this.scene = options.scene;
this.globals = options.scene.globals;
}
onPointerUp (pointer) {
//console.log('query onPointerUp', pointer);
}
onPointerDown (pointer, gameObject) {
if (gameObject[0])
console.log(gameObject[0].cell);
//if (gameObject[0])
// console.log(gameObject[0].cell.depth, gameObject[0].cell.tiles.terrain.sprite.depth, gameObject[0].cell.tiles.terrain.depth, gameObject[0].cell);
}
onPointerMove (pointer, localX, localY) {
//console.log('query onPointerMove', pointer, localX, localY);
}
onPointerOver (pointer, localX, localY) {
//console.log('query onPointerOver', pointer, localX, localY);
}
onPointerOut (pointer) {
//console.log('query onPointerOut', pointer);
}
} |