123456789101112131415161718192021222324 |
- import { _decorator, Component, Node } from 'cc';
- import { view_ui_att_item } from './view_ui_att_item';
- import { not_have_interact_data } from '../../../data/data';
- const { ccclass, property } = _decorator;
- @ccclass('view_not_have_interact')
- export class view_not_have_interact extends Component {
- @property(Node) bg:Node = null;
- private m_data:not_have_interact_data = null;
- public updateView(data:not_have_interact_data){
- if(data===null){
- data = new not_have_interact_data;
- }
- this.m_data = data;
- this.bg.getComponent(view_ui_att_item).updateAtt(data.bg)
- data.bg = this.bg.getComponent(view_ui_att_item).getData()
- }
- public getData(){
- return this.m_data;
- }
- }
|