Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        wallJumpRequest = false;

        rb      = GetComponent <Rigidbody2D>();
        pm      = GetComponent <PlayerMovement>();
        pj      = GetComponent <PlayerJump>();
        bj      = GetComponent <BetterJump>();
        walling = GetComponent <Walling>();
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        //init var
        damageItems              = false;
        canAcceptInput           = true;
        currSwordMoveResetDelay  = 0;
        currSwordMoveChangeDelay = 0;


        //init components
        rb   = GetComponent <Rigidbody2D>();
        pm   = GetComponent <PlayerMovement>();
        w    = GetComponent <Walling>();
        anim = GetComponent <Animator>();
    }