Ejemplo n.º 1
0
    void Update()
    {
        alignFist();
        if (Input.GetKeyUp(KeyCode.W))
        {
            movementDelegate.requestJump(this);
        }

        if (Input.GetKeyUp(KeyCode.Space))
        {
            this.fist.activate(Dirs.getRightIfTrue(isRightFacing()), 1);
        }
        handleXInput();
    }