import { _decorator, Component, Node } from 'cc'; import { PlayerTacticalItem } from './PlayerTacticalItem'; const { ccclass, property } = _decorator; /** * 玩家阵法 */ @ccclass('PlayerTacticalView') export class PlayerTacticalView extends Component { //阵法子节点列表 items:PlayerTacticalItem[] = []; // onLoad(){ // //阵法 // this.items = this.node.getComponentsInChildren(PlayerTacticalItem); // this.items.forEach((item,index) => item.onInit(index)); // this.onUpdateView(); // } // //更新阵法显示 // onUpdateView(){ // this.items.forEach(item => { // item.onUpdateView(); // }) // } }