Esempio n. 1
0
 //정조준
 private void Aim()
 {
     isAimMode = !isAimMode;
     currentRifle.animator.SetBool("Aim", isAimMode);
     crosshair.AimAnimation(isAimMode);
     if (isAimMode)
     {
         gameObject.transform.SetParent(theCam.gameObject.transform);
         StopAllCoroutines();
         gameObject.transform.localPosition = currentRifle.GetAimOriginPos();
         gameObject.transform.localRotation = currentRifle.GetAimOriginRot();
         //StartCoroutine(AimCoroutine());
         //StartCoroutine(FOVIn());
     }
     else
     {
         gameObject.transform.SetParent(originParent.transform);
         //mainCam.fieldOfView = 60;
         StopAllCoroutines();
         gameObject.transform.localPosition = originPos;
         gameObject.transform.localRotation = originRot;
         //StartCoroutine(ButtstockCoroutine());
         //StartCoroutine(FOVOut());
     }
 }