diff --git a/Assets/ResWork/Prefab/Play_Ingame.prefab b/Assets/ResWork/Prefab/Play_Ingame.prefab index 08d3add..26f00d3 100644 --- a/Assets/ResWork/Prefab/Play_Ingame.prefab +++ b/Assets/ResWork/Prefab/Play_Ingame.prefab @@ -5298,6 +5298,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: go_child: {fileID: 0} + m_AimArrowController: {fileID: 5513413210549281001} texts_money: - {fileID: 351787397619305963} - {fileID: 351787398816937878} diff --git a/Assets/Script/InGame/Actor/AimArrowController.cs b/Assets/Script/InGame/Actor/AimArrowController.cs index f2024ad..0fb8361 100644 --- a/Assets/Script/InGame/Actor/AimArrowController.cs +++ b/Assets/Script/InGame/Actor/AimArrowController.cs @@ -19,6 +19,12 @@ public class AimArrowController : MonoBehaviour m_attackLifeTime = m_attackTime = unit.f_AttackSpeed; } + public void Set_AttackLifeTime() + { + var unit = IngameMgr.Ins.Get_CurUnitTData(); + m_attackLifeTime = unit.f_AttackSpeed - IngameMgr.Ins.Get_SkillValue(eSkillType.AttackSpeedUp); + } + private void Update() { m_attackLifeTime -= Time.deltaTime; diff --git a/Assets/Script/InGame/IngameMgr.cs b/Assets/Script/InGame/IngameMgr.cs index 18b41e2..04503c0 100644 --- a/Assets/Script/InGame/IngameMgr.cs +++ b/Assets/Script/InGame/IngameMgr.cs @@ -7,6 +7,8 @@ using UnityEngine.UI; public class IngameMgr : MonoBehaviourSingletonTemplate { + public AimArrowController m_AimArrowController; + [Header("UI")] public TextMeshProUGUI[] texts_money; // 0 코인, 1 아이템, 2 웨이브 public Text t_timer, t_hp, t_exp; @@ -226,6 +228,8 @@ public class IngameMgr : MonoBehaviourSingletonTemplate m_HP += (int)tdata.f_Value; Set_Texts(); } + else if (skillType == eSkillType.AttackSpeedUp) + m_AimArrowController.Set_AttackLifeTime(); } public StageConfigTableData Get_CurStageTData() { return CurStageData; }