This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-12-25 02:06:56 +08:00
parent 516d520c5e
commit 5366e3413c
18 changed files with 1054 additions and 441 deletions

View File

@@ -67,14 +67,15 @@ export default class GAttackParabolicBangRemote implements GAttackBase{
))
})
.onComplete(() => {
//销毁
bullet.node.destroy();
if(!role.get()) return;
//生成爆炸特效
let effect = GEffectUtil.createOne(bang.ske);
role.mode.addGNode(effect.node,bullet.node.worldPosition);
//获取默认动画
effect.setAnimation(0,"animation",false);
//销毁
bullet.node.destroy();
GDetection.testAABBCenterRole(rect(effect.node.worldPosition.x,effect.node.worldPosition.y,aw,ah)).forEach(enemy =>{
GRoleAttack.onNormalAttack(role,enemy); //普通攻击