Exemplo n.º 1
0
 private void Shoot(float kickMagnitude)
 {
     anim.SetTrigger("shot");
     Instantiate(bullet, FPSCam.Ray.origin, FPSCam.GenerateRandomDeviation(accuracy.Bloom));
     FPSCam.Kick(kickMagnitude, attributes.RecoilControl);
     accuracy.AddBloom(attributes.Stability);
     isLoaded = false;
     StartCoroutine(CycleShot());
 }