fix(hero): 调整英雄升级特效播放逻辑
修正了英雄等级对应的特效播放映射,注释了暂未使用的9级特效代码
This commit is contained in:
@@ -89,11 +89,13 @@ export class Hero extends ecs.Entity {
|
|||||||
mLogger.log(this.debugMode,"hero",node.getSiblingIndex());
|
mLogger.log(this.debugMode,"hero",node.getSiblingIndex());
|
||||||
|
|
||||||
var hv = node.getComponent(HeroViewComp)!;
|
var hv = node.getComponent(HeroViewComp)!;
|
||||||
if(hero_lv == 2){hv.playAllTime("plus")}
|
if(hero_lv == 3){hv.playAllTime("plus")}
|
||||||
if(hero_lv == 3){hv.playAllTime("plus2")}
|
if(hero_lv == 4){hv.playAllTime("plus")}
|
||||||
if(hero_lv == 4){hv.playAllTime("plus3")}
|
if(hero_lv == 5){hv.playAllTime("plus")}
|
||||||
if(hero_lv == 5){hv.playAllTime("plus4")}
|
if(hero_lv == 6){hv.playAllTime("plus2")}
|
||||||
if(hero_lv == 6){hv.playAllTime("plus5")}
|
// if(hero_lv == 9){hv.playAllTime("plus3")}
|
||||||
|
// if(hero_lv == 9){hv.playAllTime("plus4")}
|
||||||
|
// if(hero_lv == 9){hv.playAllTime("plus5")}
|
||||||
|
|
||||||
const model = this.get(HeroAttrsComp);
|
const model = this.get(HeroAttrsComp);
|
||||||
// 从配置中读取英雄静态数据
|
// 从配置中读取英雄静态数据
|
||||||
|
|||||||
Reference in New Issue
Block a user