co_off 통일

This commit is contained in:
Ino 2025-01-02 16:38:57 +09:00
parent e3d50163c8
commit 95df73435f
6 changed files with 10 additions and 23 deletions

View File

@ -7,8 +7,6 @@ public class Projectile_Stop : ProjectileBase
{ {
base.Set(_data); base.Set(_data);
transform.eulerAngles = Vector3.zero; // 근접 공격 판정은 회전 x 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); }
} }

View File

@ -283,6 +283,11 @@ public class ProjectileBase : MonoBehaviour
if (forceoff || !m_Pierce) gameObject.SetActive(false); if (forceoff || !m_Pierce) gameObject.SetActive(false);
if (!bFirstLoad) Show_HitEffect(false, null); if (!bFirstLoad) Show_HitEffect(false, null);
} }
protected IEnumerator Co_Off(float delay)
{
yield return new WaitForSeconds(delay);
Off(true);
}
/// <summary> /// <summary>
/// 포물선 움직임 /// 포물선 움직임

View File

@ -1,6 +1,3 @@
using System.Collections;
using UnityEngine;
public class Skill_EatSnack : ProjectileBase public class Skill_EatSnack : ProjectileBase
{ {
public override void Set(ProjectileData _data) public override void Set(ProjectileData _data)
@ -15,8 +12,6 @@ public class Skill_EatSnack : ProjectileBase
Set_ReduceCoolTime_byStep(3); Set_ReduceCoolTime_byStep(3);
StartCoroutine(Co_Off()); StartCoroutine(Co_Off(1.5f));
} }
IEnumerator Co_Off() { yield return new WaitForSeconds(1.5f); Off(true); }
} }

View File

@ -9,6 +9,7 @@ public class Skill_GroundRay : ProjectileBase
_data.eStartPos = eProjectileStartPos.Custom; _data.eStartPos = eProjectileStartPos.Custom;
_data.v3_StartPos = _data.target.Get_position(); _data.v3_StartPos = _data.target.Get_position();
base.Set(_data); base.Set(_data);
StartCoroutine(Co_Off(2f));
} }
private void Update() private void Update()

View File

@ -17,8 +17,6 @@ public class Skill_Heal : ProjectileBase
healinfo.Damage += healinfo.Damage * (IsStep(2) ? Get_AwakenData(2, 1) : 0); healinfo.Damage += healinfo.Damage * (IsStep(2) ? Get_AwakenData(2, 1) : 0);
m_ProjectTileData.target.Check_Extra(healinfo); m_ProjectTileData.target.Check_Extra(healinfo);
m_ProjectTileData.target.Heal(healinfo.Damage); m_ProjectTileData.target.Heal(healinfo.Damage);
StartCoroutine(Co_Off()); StartCoroutine(Co_Off(1.5f));
} }
IEnumerator Co_Off() { yield return new WaitForSeconds(1.5f); Off(); }
} }

View File

@ -1,6 +1,4 @@
using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine;
public class Skill_MultiShot : ProjectileBase public class Skill_MultiShot : ProjectileBase
{ {
@ -28,14 +26,6 @@ public class Skill_MultiShot : ProjectileBase
list_deathmob.Add(mob); list_deathmob.Add(mob);
}); });
StartCoroutine(Co_Off()); StartCoroutine(Co_Off(3f));
}
IEnumerator Co_Off()
{
yield return new WaitForSeconds(2f);
Off();
if (list_deathmob.Count >= 3)
ServerInfo.Ins.m_ServerData.Add_TitleCondition(60); // 칭호 : 명사수
} }
} }