void Start() { locomotion = GetComponent <OPC_Locomotion>(); jump = GetComponent <OPC_Jump>(); capsule = GetComponent <CapsuleCollider>(); CameraObj = GetComponent <OPC_MouseLook>().CameraObj; camera_initPos = CameraObj.transform.localPosition; camera_crouchPos = new Vector3(camera_initPos.x, camera_initPos.y - crouchAmount, camera_initPos.z); }
void Start() { locomotion = GetComponent <OPC_Locomotion>(); jump = GetComponent <OPC_Jump>(); }