예제 #1
0
파일: Player.cs 프로젝트: Alan-Baylis/VOX
 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);
            }
        }