// Start is called before the first frame update void Start() { camera1 = Camera.main; rippleEffect = FindObjectOfType <RippleEffect>(); betterJumping = GetComponent <BetterJumping>(); Debug.Log("Movement Start"); }
// Start is called before the first frame update void Start() { coll = GetComponent <Collision>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponentInChildren <AnimationScript>(); betterJumping = GetComponent <BetterJumping>(); remainingJumps = (int)unlockedMoves == 4 ? 2 : 1; }
void Start() { // Get the player components playerController = GetComponent <PlayerController>(); coll = GetComponent <Collisions>(); rb = GetComponent <Rigidbody2D>(); betterJumping = GetComponent <BetterJumping>(); oldAnimationThreshold = betterJumping.animationThreshold; }
void Start() { // Get the betterJumping component betterJumping = GetComponent <BetterJumping>(); // Get the rigidbody component rb = GetComponent <Rigidbody2D>(); // Get the playerController component playerController = GetComponent <PlayerController>(); }
// Start is called before the first frame update void Start() { coll = GetComponent <Collision>(); _rb2D = GetComponent <Rigidbody2D>(); betterJumpScript = GetComponent <BetterJumping>(); anime = GetComponent <PlayerAnimationScript>(); orginalGravityScale = _rb2D.gravityScale; InstantiateGhost(); }
void Start() { // Get the components animator = GetComponentInChildren <Animator>(); playerController = GetComponent <PlayerController>(); wallSlide = GetComponent <WallSlide>(); wallClimb = GetComponent <WallClimb>(); wallJump = GetComponent <WallJump>(); ledgeGrab = GetComponent <LedgeGrab>(); dash = GetComponent <Dash>(); betterJumping = GetComponent <BetterJumping>(); knockBack = GetComponent <Knockback>(); }
void Start() { // Get the collisions component coll = GetComponent <Collisions>(); // Get the betterJumping component betterJumping = GetComponent <BetterJumping>(); // Get the rigidbody component rb = GetComponent <Rigidbody2D>(); // Get the playerController component playerController = GetComponent <PlayerController>(); // Get the wall climb component wallClimb = GetComponent <WallClimb>(); // Set can grab ledge to false canGrabLedge = false; // Hijack the wall climb ledge grab wallClimb.disableLedgeGrab = hijackControls; }