public void StartExpirationTimer(FixPoint start_time, SkillManagerComponent manager) { SkillTimer timer = m_timers[SkillTimer.ExpirationTimer]; FixPoint update_rate = FixPoint.One; if (m_normal_attack) { update_rate = manager.AttackSpeedRate; } timer.Start(start_time, ExpirationTime, update_rate); }
public void StartCooldownTimer(FixPoint start_time, SkillManagerComponent manager) { SkillTimer timer = m_timers[SkillTimer.CooldownTimer]; FixPoint update_rate; if (m_normal_attack) { update_rate = manager.AttackSpeedRate; } else { update_rate = manager.CoolDownSpeedUpRate; } timer.Start(start_time, CooldownTime, update_rate); }