From dc8ce750ffa1712adea65c1cae6ef58d68670b61 Mon Sep 17 00:00:00 2001 From: sli97 <775303361@qq.com> Date: Thu, 15 Dec 2022 16:41:37 +0800 Subject: [PATCH] update --- apps/client/assets/Scripts/UI/PlayerManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/assets/Scripts/UI/PlayerManager.ts b/apps/client/assets/Scripts/UI/PlayerManager.ts index 4caac51..fe7f627 100644 --- a/apps/client/assets/Scripts/UI/PlayerManager.ts +++ b/apps/client/assets/Scripts/UI/PlayerManager.ts @@ -1,10 +1,11 @@ import { _decorator, Component, Node, Label } from "cc" +import { IPlayer } from "../Common" import DataManager from "../Global/DataManager" const { ccclass, property } = _decorator @ccclass("PlayerManager") export class PlayerManager extends Component { - init({ id, nickname, rid }: { id: number; nickname: string; rid: number }) { + init({ id, nickname, rid }: IPlayer) { const label = this.getComponent(Label) let str = nickname if (DataManager.Instance.myPlayerId === id) {