mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
36 lines
711 B
TypeScript
36 lines
711 B
TypeScript
|
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();
|
||
|
// })
|
||
|
// }
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|