Commit 2551facb authored by 范雪寒's avatar 范雪寒

fix: bugs

parent ce2411e8
......@@ -697,7 +697,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initNetworkListener() {
this.networkHelper.on("playerJoin", (event) => {
if (this.server) {
this.server.onPlayerJoin(event);
this.server.onPlayerJoin({ data: { joinPlayerId: event.playerId } });
}
cc.log("playerJoin" + JSON.stringify(event));
});
......
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