AttackSpeedUp
This commit is contained in:
parent
fa1e66fe6a
commit
76c03ebd49
|
|
@ -5298,6 +5298,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
go_child: {fileID: 0}
|
||||
m_AimArrowController: {fileID: 5513413210549281001}
|
||||
texts_money:
|
||||
- {fileID: 351787397619305963}
|
||||
- {fileID: 351787398816937878}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ using UnityEngine.UI;
|
|||
|
||||
public class IngameMgr : MonoBehaviourSingletonTemplate<IngameMgr>
|
||||
{
|
||||
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<IngameMgr>
|
|||
m_HP += (int)tdata.f_Value;
|
||||
Set_Texts();
|
||||
}
|
||||
else if (skillType == eSkillType.AttackSpeedUp)
|
||||
m_AimArrowController.Set_AttackLifeTime();
|
||||
}
|
||||
|
||||
public StageConfigTableData Get_CurStageTData() { return CurStageData; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue