feat(game): 技能基础框架基本搭建完成,下步遇到再完善
- 调整了英雄角色top.prefab节点结构和组件关联,优化层级关系和属性值 - 修改pow、mpb等子节点的组件及位置,提升表现效果 - 更新技能atk_fires.prefab增加了ReadyLoop、SkillTime等新属性 - 调整攻击技能atk_s1.prefab的运行类型及相关时间与计数参数 - 修正atk_s1.prefab目标覆盖配置,完善prefab实例结构 - 精简atk_s_1.prefab的子节点引用,去除冗余id链接,简化资源结构
This commit is contained in:
@@ -91,6 +91,12 @@ export class BuffComp extends Component {
|
||||
// this.node.getChildByName("top").getChildByName("hp").active = (hp == hp_max) ? false : true;
|
||||
}
|
||||
|
||||
mp_show(mp:number,mp_max:number){
|
||||
this.node.getChildByName("top").getChildByName("pow").getComponent(ProgressBar).progress = mp/mp_max;
|
||||
this.scheduleOnce(()=>{
|
||||
this.node.getChildByName("top").getChildByName("pow").getChildByName("mpb").getComponent(ProgressBar).progress = mp/mp_max;
|
||||
},0.15)
|
||||
}
|
||||
|
||||
update_info_lv(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user