From 4a083f2f3d8baf1c2630b3717d62904edcc8e24a Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Sat, 14 Nov 2020 10:32:27 +0800
Subject: [PATCH] 修改小怪,精灵塔改成2D Sprite

---
 Assets/Scripts/TowerDefense/Towers/TowerLaunchers/BallisticLauncher.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/Towers/TowerLaunchers/BallisticLauncher.cs b/Assets/Scripts/TowerDefense/Towers/TowerLaunchers/BallisticLauncher.cs
index a4fc5da..7dea0db 100644
--- a/Assets/Scripts/TowerDefense/Towers/TowerLaunchers/BallisticLauncher.cs
+++ b/Assets/Scripts/TowerDefense/Towers/TowerLaunchers/BallisticLauncher.cs
@@ -39,14 +39,15 @@
             }
             ballisticProjectile.FireAtPoint(startPosition, enemy.position);
 
-            if (fireParticleObj != null)
-            {
-                GameObject psObj = Poolable.TryGetPoolable(fireParticleObj);
-                ParticleSystem ps = psObj.GetComponent<ParticleSystem>();
-                if (ps == null)
-                    ps = psObj.transform.GetChild(0).GetComponent<ParticleSystem>();
-                PlayParticles(ps, startPosition, enemy.position);
-            }
+            // 先不适用炮口特效了
+            // if (fireParticleObj != null)
+            // {
+            //     GameObject psObj = Poolable.TryGetPoolable(fireParticleObj);
+            //     ParticleSystem ps = psObj.GetComponent<ParticleSystem>();
+            //     if (ps == null)
+            //         ps = psObj.transform.GetChild(0).GetComponent<ParticleSystem>();
+            //     PlayParticles(ps, startPosition, enemy.position);
+            // }
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1