Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     camera1       = Camera.main;
     rippleEffect  = FindObjectOfType <RippleEffect>();
     betterJumping = GetComponent <BetterJumping>();
     Debug.Log("Movement Start");
 }
Beispiel #2
0
 // 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;
 }
Beispiel #3
0
 void Start()
 {
     // Get the player components
     playerController = GetComponent <PlayerController>();
     coll             = GetComponent <Collisions>();
     rb                    = GetComponent <Rigidbody2D>();
     betterJumping         = GetComponent <BetterJumping>();
     oldAnimationThreshold = betterJumping.animationThreshold;
 }
Beispiel #4
0
 void Start()
 {
     // Get the betterJumping component
     betterJumping = GetComponent <BetterJumping>();
     // Get the rigidbody component
     rb = GetComponent <Rigidbody2D>();
     // Get the playerController component
     playerController = GetComponent <PlayerController>();
 }
Beispiel #5
0
    // 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();
    }
Beispiel #6
0
 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>();
 }
Beispiel #7
0
    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;
    }