private void Start() { rigid = GetComponent <Rigidbody>(); rigid.angularDrag = 999; rigid.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ; col = GetComponent <Collider>(); camHolder = CameraHolder.singleton.transform; anim = GetComponentInChildren <Animator>(); freeClimb = GetComponent <FreeClimb>(); }
void Start() { pManager = PlayerManager.instance; input = ReInput.players.GetPlayer(0); pMove = GetComponent <PlayerMovement>(); wallJump = GetComponent <WallJump>(); freeClimb = GetComponent <FreeClimb>(); ledgeClimb = GetComponent <LedgeClimb>(); climbLadder = GetComponent <ClimbLadder>(); pAttack = GetComponent <PlayerAttack>(); pBlocking = GetComponent <PlayerBlocking>(); pMenu = GetComponent <PlayerMenu>(); pInv = GetComponent <PlayerInventory>(); pInteraction = GetComponent <PlayerInteraction>(); pCamera = Camera.main.GetComponent <ThirdPersonCamera>(); anim = GetComponent <Animator>(); rb = GetComponent <Rigidbody>(); timeSinceGrounded = Time.time; }
public void Init(FreeClimb c, Transform helper) { anim = c.anim; ikBase = c.baseIKsnapshot; h = helper; }
public void Init(FreeClimb c, Transform _helper) { anim = c.anim; ikBase = c.baseIkSnapshot; helper = _helper; }