Exemple #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");
 }
Exemple #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;
 }
Exemple #3
0
 void Start()
 {
     // Get the player components
     playerController = GetComponent <PlayerController>();
     coll             = GetComponent <Collisions>();
     rb                    = GetComponent <Rigidbody2D>();
     betterJumping         = GetComponent <BetterJumping>();
     oldAnimationThreshold = betterJumping.animationThreshold;
 }
Exemple #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>();
 }
Exemple #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();
    }
Exemple #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>();
 }
Exemple #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;
    }