Example #1
0
 void Accelerate()
 {
     accelerating = true;
     _gameManager.O2AmountAdjust(-1);
     _gameManager.generalSpeed += _gameManager.MaxSpeed / 4;
     _animationManager.AcceleratorEffectOn();
     Camera.main.GetComponent <CameraShaker>().ShakeCamera(2f, 1f * Time.deltaTime);
     immortalityCD = immortalityDelay;
     _gameManager.AccelerateSpeed();
 }