mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -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); //普通攻击
|
||||
|
Reference in New Issue
Block a user