123456789101112131415161718192021222324252627 |
- import { _decorator, Component, Node, Sprite, SpriteFrame } from 'cc';
- import { Hall } from '../../hall/Hall';
- const { ccclass, property } = _decorator;
- @ccclass('UI_Head_Icon')
- export class UI_Head_Icon extends Component {
- @property(Sprite)
- private head:Sprite;
- @property([SpriteFrame])
- private default_head:SpriteFrame[] = [];
- start() {
- }
- update(deltaTime: number) {
-
- }
- show(uid:string,head:string|null):void{
- const rc=this.default_head[0];
- Hall.getInstance().head_icon.showIcon(uid,head,this.head,rc);
- }
- }
|