From ca4c0a3b1a1769a5d0af4a17e7a916b0ca5b3cf8 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Wed, 18 Nov 2020 15:44:39 +0800
Subject: [PATCH] 水技能调整 打包

---
 Assets/Scripts/TowerDefense/UI/FreezeBreath.cs |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/UI/FreezeBreath.cs b/Assets/Scripts/TowerDefense/UI/FreezeBreath.cs
index bd3fd70..d0a4b6c 100644
--- a/Assets/Scripts/TowerDefense/UI/FreezeBreath.cs
+++ b/Assets/Scripts/TowerDefense/UI/FreezeBreath.cs
@@ -28,9 +28,20 @@
         public static float ChargeTime { get; private set; } = 10f;
 
         /// <summary>
-        /// 技能持续时间
+        /// 伤害时间
         /// </summary>
-        public static float EffectTime { get; private set; } = 1f;
+        public float EffectTime { get; private set; } = 2f;
+
+        /// <summary>
+        /// 伤害结算次数
+        /// </summary>
+        /// <value></value>
+        public int DamageCount { get; private set; } = 6;
+
+        /// <summary>
+        /// 整个技能时间
+        /// </summary>
+        public float SkillTime { get; private set; } = 2.5f;
 
         /// <summary>
         /// 当前的充能进度
@@ -87,8 +98,6 @@
                 agentList.Add(list[i]);
             }
 
-            PlayFreezeEffect(waveLineId);
-
             while (agentList.Count > 0)
             {
                 Agent agent = agentList[0];
@@ -103,8 +112,14 @@
             }
         }
 
-        private void PlayFreezeEffect(int waveLineId)
+        public void PlayFreezeEffect(int waveLineId)
         {
+            WaveLineAgentInsMgr[] agentInsMgrs = AgentInsManager.instance.GetWaveLineList();
+            WaveLineAgentInsMgr waveLineAgentInsMgr = agentInsMgrs[waveLineId];
+            List<Agent> list = waveLineAgentInsMgr.listAgent;
+
+            if (list.Count == 0) return;
+
             GameObject obj = Poolable.TryGetPoolable(FreezeJet);
             ParticleSystem ps = obj.GetComponent<ParticleSystem>();
 

--
Gitblit v1.9.1