Exemple #1
0
 private void Start()
 {
     shooter = ShooterController.instance;
     anim    = GetComponent <Animator>();
     rigis   = GetComponentsInChildren <Rigidbody>();
     Ragdoll(false);
 }
Exemple #2
0
        private void Awake()
        {
            instance = this;

            Cursor.visible   = false;
            Cursor.lockState = CursorLockMode.Locked;

            anim         = GetComponent <Animator>();
            input        = GetComponent <MovementInput>();
            originalZoom = thirdPersonCam.m_Orbits[1].m_Radius;
            impulse      = thirdPersonCam.GetComponent <CinemachineImpulseSource>();

            postProfile = postVolume.profile;
            postProfile.TryGet(out colorAdjustments);
            postProfile.TryGet(out chromaticAberration);
            postProfile.TryGet(out vignette);

            gunIdlePos = gun.localPosition;
            gunIdleRot = gun.localEulerAngles;

            HorizontalOffset(originalOffsetAmount);
        }