diff --git a/Assets/Script/Character/Projectile/Projectile/Projectile_Stop.cs b/Assets/Script/Character/Projectile/Projectile/Projectile_Stop.cs index 1ea433b04..b9e685c3a 100644 --- a/Assets/Script/Character/Projectile/Projectile/Projectile_Stop.cs +++ b/Assets/Script/Character/Projectile/Projectile/Projectile_Stop.cs @@ -7,8 +7,6 @@ public class Projectile_Stop : ProjectileBase { base.Set(_data); transform.eulerAngles = Vector3.zero; // 근접 공격 판정은 회전 x - StartCoroutine(Co_Off()); + StartCoroutine(Co_Off(m_ProjectTileData.LifeTime)); } - - IEnumerator Co_Off() { yield return new WaitForSeconds(m_ProjectTileData.LifeTime); Off(true); } } \ No newline at end of file diff --git a/Assets/Script/Character/Projectile/ProjectileBase.cs b/Assets/Script/Character/Projectile/ProjectileBase.cs index 265a24950..2d58339fa 100644 --- a/Assets/Script/Character/Projectile/ProjectileBase.cs +++ b/Assets/Script/Character/Projectile/ProjectileBase.cs @@ -283,6 +283,11 @@ public class ProjectileBase : MonoBehaviour if (forceoff || !m_Pierce) gameObject.SetActive(false); if (!bFirstLoad) Show_HitEffect(false, null); } + protected IEnumerator Co_Off(float delay) + { + yield return new WaitForSeconds(delay); + Off(true); + } /// /// 포물선 움직임 diff --git a/Assets/Script/Character/Projectile/Skill/Skill_EatSnack.cs b/Assets/Script/Character/Projectile/Skill/Skill_EatSnack.cs index 9f08cf41b..c545de814 100644 --- a/Assets/Script/Character/Projectile/Skill/Skill_EatSnack.cs +++ b/Assets/Script/Character/Projectile/Skill/Skill_EatSnack.cs @@ -1,6 +1,3 @@ -using System.Collections; -using UnityEngine; - public class Skill_EatSnack : ProjectileBase { public override void Set(ProjectileData _data) @@ -15,8 +12,6 @@ public class Skill_EatSnack : ProjectileBase Set_ReduceCoolTime_byStep(3); - StartCoroutine(Co_Off()); + StartCoroutine(Co_Off(1.5f)); } - - IEnumerator Co_Off() { yield return new WaitForSeconds(1.5f); Off(true); } } \ No newline at end of file diff --git a/Assets/Script/Character/Projectile/Skill/Skill_GroundRay.cs b/Assets/Script/Character/Projectile/Skill/Skill_GroundRay.cs index db38f19d8..e16d3a9d9 100644 --- a/Assets/Script/Character/Projectile/Skill/Skill_GroundRay.cs +++ b/Assets/Script/Character/Projectile/Skill/Skill_GroundRay.cs @@ -9,6 +9,7 @@ public class Skill_GroundRay : ProjectileBase _data.eStartPos = eProjectileStartPos.Custom; _data.v3_StartPos = _data.target.Get_position(); base.Set(_data); + StartCoroutine(Co_Off(2f)); } private void Update() diff --git a/Assets/Script/Character/Projectile/Skill/Skill_Heal.cs b/Assets/Script/Character/Projectile/Skill/Skill_Heal.cs index dc0a0ab5e..259d9e95f 100644 --- a/Assets/Script/Character/Projectile/Skill/Skill_Heal.cs +++ b/Assets/Script/Character/Projectile/Skill/Skill_Heal.cs @@ -17,8 +17,6 @@ public class Skill_Heal : ProjectileBase healinfo.Damage += healinfo.Damage * (IsStep(2) ? Get_AwakenData(2, 1) : 0); m_ProjectTileData.target.Check_Extra(healinfo); m_ProjectTileData.target.Heal(healinfo.Damage); - StartCoroutine(Co_Off()); + StartCoroutine(Co_Off(1.5f)); } - - IEnumerator Co_Off() { yield return new WaitForSeconds(1.5f); Off(); } } \ No newline at end of file diff --git a/Assets/Script/Character/Projectile/Skill/Skill_MultiShot.cs b/Assets/Script/Character/Projectile/Skill/Skill_MultiShot.cs index 7b401a8f2..93eb0c1cf 100644 --- a/Assets/Script/Character/Projectile/Skill/Skill_MultiShot.cs +++ b/Assets/Script/Character/Projectile/Skill/Skill_MultiShot.cs @@ -1,6 +1,4 @@ -using System.Collections; using System.Collections.Generic; -using UnityEngine; public class Skill_MultiShot : ProjectileBase { @@ -28,14 +26,6 @@ public class Skill_MultiShot : ProjectileBase list_deathmob.Add(mob); }); - StartCoroutine(Co_Off()); - } - - IEnumerator Co_Off() - { - yield return new WaitForSeconds(2f); - Off(); - if (list_deathmob.Count >= 3) - ServerInfo.Ins.m_ServerData.Add_TitleCondition(60); // 칭호 : 명사수 + StartCoroutine(Co_Off(3f)); } } \ No newline at end of file