pubgv3/assets/scripts/game/showface.js
zhuguoqing ff550d5d6a init
2022-05-22 10:32:02 +08:00

27 lines
506 B
JavaScript

var Utils = require("Utils")
cc.Class({
extends: cc.Component,
properties: {
lb_name: {
default: null,
type: cc.Label
},
sp_head: {
default: null,
type: cc.Sprite
},
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
start() {
Utils.setitem(this, cc.playerData.nowheroid, this.sp_head)
this.lb_name.string = cc.playerData.name
},
// update (dt) {},
});