Exemplo n.º 1
0
 // Generally ~ 0.5 - 1.5
 public void AddGunShotImpulse(float amount)
 {
     // Add to the queue instead of directly into spring, because we want to
     // delay recoil before it 'hits' the camera. Will be put into the actual
     // spring in LateUpdate().
     QueuedScreenRecoils.Add(CalculateGunShotImpulse(amount));
 }
 private void AddReloadImpulse()
 {
     ReloaderDelayer.Add(500);
     //ReloaderSpring.AddImpulse(500);
 }