Пример #1
0
 public void Recoill(Recoill recoill)
 {
     if (photonView.isMine)
     {
         mouseLook.Recoill(recoill);
     }
 }
Пример #2
0
        public void Recoill(Recoill recoill)
        {
            if (photonView.isMine)
            {
                this.recoill    += recoill.recoill * recoill.divider;
                recoillLerpSpeed = recoill.lerpSpeed;

                _xRot = Mathf.Clamp(_xRot - recoill.recoill * (1f - recoill.divider), -999f, 999f);
            }
        }