feat(英雄技能): 添加技能前摇与后摇动画支持
- 在 SCastSystem 中调用 playReady 播放技能前摇动画 - 在 HeroAtkSystem 中调用 playEnd 播放技能后摇动画 - 将 playSkillEffect 重构为 playSkillAnm 以播放角色攻击动画 - 修复 HeroViewComp 中 playReady 方法名拼写错误
This commit is contained in:
@@ -301,7 +301,7 @@ export class HeroViewComp extends CCComp {
|
||||
node.parent = this.node;
|
||||
}
|
||||
|
||||
public palayReady(anm: string = ""){
|
||||
public playReady(anm: string = ""){
|
||||
if(anm==="") return;
|
||||
var path = "game/skill/ready/" + anm;
|
||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||
@@ -516,11 +516,10 @@ export class HeroViewComp extends CCComp {
|
||||
// 伤害计算和战斗逻辑已迁移到 HeroBattleSystem
|
||||
|
||||
|
||||
playSkillEffect(skill_id:number) {
|
||||
let skill = SkillSet[skill_id]
|
||||
mLogger.log(this.debugMode, 'HeroViewComp', '[heroview] skill_id'+skill_id,skill)
|
||||
if (!skill) return;
|
||||
switch(skill.act){
|
||||
playSkillAnm(act:string="") {
|
||||
mLogger.log(this.debugMode, 'HeroViewComp', '[heroview] act'+act,)
|
||||
if (act==="") return;
|
||||
switch(act){
|
||||
case "max":
|
||||
this.as.max()
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user