|
@@ -220,7 +220,7 @@ export default class GamePlay extends cc.Component {
|
|
|
// this.node_top.y = (cc.winSize.height - this.node_top.height) * 0.5 + 5;
|
|
// this.node_top.y = (cc.winSize.height - this.node_top.height) * 0.5 + 5;
|
|
|
const world_pos = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition());
|
|
const world_pos = gData.gameData.gameStyle.node_top_ui.parent.convertToWorldSpaceAR(gData.gameData.gameStyle.node_top_ui.getPosition());
|
|
|
const node_pos = this.node_top.parent.convertToNodeSpaceAR(world_pos);
|
|
const node_pos = this.node_top.parent.convertToNodeSpaceAR(world_pos);
|
|
|
- this.node_top.y = node_pos.y - 20;
|
|
|
|
|
|
|
+ this.node_top.y = node_pos.y - 40;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
update(dt) {
|
|
update(dt) {
|