private IEnumerator HookDash(Vector2 _velocity, float time) //only experimental //damage enemies { m_pa.SetDashDirection(_velocity); m_hookDashActive = true; //m_invincible = true; //GetComponentInChildren<PlayerKnockback>().IsLethal(true); Vector2 velocity = Vector2.zero; m_currentAttackState = AttackState.Dash; m_pm.DisableUserInput(true); m_pm.externalVelocity = _velocity; yield return(new WaitForSeconds(time)); m_pm.DisableUserInput(false); m_currentAttackState = AttackState.None; //GetComponentInChildren<PlayerKnockback>().IsLethal(false); //m_invincible = false; m_hookDashActive = false; }