- 在 MissionHeroComp 中召唤英雄后派发 MasterCalled 事件,以更新英雄信息面板 - 调整 hnode.prefab 中多个节点的位置和尺寸,优化界面布局 - 为多个 TypeScript 组件文件添加详细注释,说明职责、关键设计和依赖关系 - 在 MissionCardComp 中完善英雄信息面板的创建、排序和布局逻辑
31 lines
590 B
TypeScript
31 lines
590 B
TypeScript
/**
|
|
* @file light.ts
|
|
* @description 光效组件(占位 / 预留)
|
|
*
|
|
* 职责:
|
|
* 当前为空实现的占位组件,预留用于技能光效或环境光效的扩展。
|
|
* 后续可在 onLoad / start / update 中加入光照逻辑。
|
|
*/
|
|
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property ,} = _decorator;
|
|
|
|
/** light —— 光效占位组件(预留扩展) */
|
|
@ccclass('light')
|
|
export class light extends Component {
|
|
|
|
start() {
|
|
|
|
}
|
|
|
|
protected onLoad(): void {
|
|
|
|
|
|
}
|
|
|
|
update(deltaTime: number) {
|
|
|
|
}
|
|
}
|
|
|
|
|