//------------------------------------------------------------------------------------------ // An update runs 50 frames per second vs the usual 60, used for physics calculations. //------------------------------------------------------------------------------------------ void FixedUpdate() { if (m_bAlive) { Dash scpDash = gameObject.GetComponent <Dash>(); if (!m_bCharging) { scpDash.DoDash(); } } }