Example #1
0
        protected void Boost()
        {
            if (!_isEngineOn)
            {
                return;
            }

            if (!Effects.IsBoostParticlesActive)
            {
                Effects.ActivateBoostParticles();
            }

            CachedRigidbody2D.AddForce(transform.up * forwardForce * _boostModifier * Time.fixedDeltaTime, forceMode);

            if (SoundManager.Instance != null)
            {
                SoundManager.Instance.PlaySound(Sound.MainBoost);
            }
        }