Commit ee1690cb authored by 范雪寒's avatar 范雪寒

fix: 头像尺寸

parent 99aed20c
......@@ -823,8 +823,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.getSpriteFrimeByUrl(player.headUrl, (sf) => {
if (player.color == "Red") {
red.getComponent(cc.Sprite).spriteFrame = sf;
red.width = 258;
red.height = 258;
} else {
blue.getComponent(cc.Sprite).spriteFrame = sf;
blue.width = 258;
blue.height = 258;
}
});
});
......
......@@ -83,7 +83,7 @@ export class GameServer {
onPlayerJoin(event) {
this.addPlayer({
uuid: event.playerId,
uuid: event.data.joinPlayerId,
isAI: false,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment