private void Awake() { corePlayerScript = transform.GetComponent<CorePlayerScript>(); movementPlayerScript = transform.GetComponent<MovementPlayerScript>(); IsSkiing = false; }
private void Awake() { myTransform = transform; myRigidbody = myTransform.rigidbody; movementPlayerScript = myTransform.GetComponent<MovementPlayerScript>(); }
private void Awake() { myTransform = transform; movementPlayerScript = GetComponent<MovementPlayerScript>(); rotationXPlayerScript = GetComponent<RotationXPlayerScript>(); rotationYPlayerScript = PlayerCamera.GetComponent<RotationYPlayerScript>(); jumpPlayerScript = GetComponent<JumpPlayerScript>(); crouchPlayerScript = GetComponent<CrouchPlayerScript>(); skiPlayerScript = GetComponent<SkiPlayerScript>(); shootRayPlayerScript = PlayerCamera.GetComponent<ShootRayPlayerScript>(); shootGrenadePlayerScript = PlayerCamera.GetComponent<ShootGrenadePlayerScript>(); headBobPlayerScript = PlayerCamera.GetComponent<HeadBobPlayerScript>(); }