import { _decorator, Component, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('buff_show') export class buff_show extends Component { @property(Node) icon_buff_xi:Node = null; @property(Node) icon_buff_xing:Node = null; @property(Node) icon_buff_dun:Node = null; public initView(){ this.icon_buff_xi.active = false; this.icon_buff_xing.active = false; this.icon_buff_dun.active = false; } public showBuffXi(){ this.icon_buff_xi.active = true; } public hideBuffXi(){ this.icon_buff_xi.active = false; } public showBuffXing(){ this.icon_buff_xing.active = true; } public hideBuffXing(){ this.icon_buff_xing.active = false; } public showBuffDun(){ this.icon_buff_dun.active = true; } public hideBuffDun(){ this.icon_buff_dun.active = false; } }