import { _decorator, Component, Node } from 'cc'; import { HeroViewComp } from './HeroViewComp'; const { ccclass, property } = _decorator; @ccclass('BuffComp') export class BuffComp extends Component { heroView: any=null; buff_node:any=null; start() { this.heroView = this.node.getComponent(HeroViewComp); } update(deltaTime: number) { } }