From 17c6e8b6f2aee4ed9a15c886f54a73f0cb61b125 Mon Sep 17 00:00:00 2001 From: weixudong <weixudong4700@ktgame.com> Date: Wed, 09 Dec 2020 17:14:59 +0800 Subject: [PATCH] Merge branch 'master' of ssh://172.16.1.52:8091/GemBattle into master --- Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs b/Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs index 9856e5e..3e2b811 100644 --- a/Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs +++ b/Assets/Scripts/ActionGameFramework/Projectiles/BallisticProjectile.cs @@ -162,11 +162,13 @@ m_Fired = true; m_CollidersIgnoring.Clear(); - + // 因为炮弹没有模型,本身就是一个带碰撞体的粒子特效 ParticleSystem ps = GetComponent<ParticleSystem>(); if (ps == null) ps = transform.GetChild(0).GetComponent<ParticleSystem>(); + if (ps == null) + ps = transform.GetChild(0).GetChild(0).GetComponent<ParticleSystem>(); ps?.Play(); if (fired != null) -- Gitblit v1.9.1