import { _decorator, Component, Node } from 'cc'; import { not_have_interact_data } from '../../../data/data'; import { receive_res_item } from './receive_res_item'; const { ccclass, property } = _decorator; @ccclass('res_not_have_interact') export class res_not_have_interact extends Component { @property(Node) bg:Node = null; private m_data:not_have_interact_data = null; public initView(data:not_have_interact_data){ this.m_data = data; this.bg.getComponent(receive_res_item).initView( this.m_data.bg) } }