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

fix: 头像尺寸

parent 079b3607
......@@ -892,8 +892,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;
}
});
});
......
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