void Update()
    {
        if (hero.GetType() == typeof(ZeroControl))
        {
            //zeroControl.attacking = Input.GetMouseButtonUp(0);
            hero.attacking      = Input.GetMouseButtonUp(0);
            hero.swordAttacking = Input.GetMouseButtonUp(1);
        }

        hero.inputHorizontal = Input.GetAxisRaw("Horizontal");
        if (Input.GetButton("Jump"))
        {
            hero.SetJump();
        }
        //spriteControl.SetVelocity(Input.GetAxis("Horizontal"));
    }
Example #2
0
    void Update()
    {
        if (hero.GetType() == typeof(ZeroControl))
        {
            hero.SetFire(fire);
            zerofire.setCharging(charging);
            //hero.attacking = Input.GetMouseButtonUp(0);
            hero.swordAttacking = Input.GetMouseButtonUp(1);
        }

        hero.SetMove(input);

        if (podePular)
        {
            hero.SetJump();
        }

        //hero.inputHorizontal = Input.GetAxisRaw("Horizontal");
        //if (Input.GetButton("Jump")) { hero.SetJump(); }



        //spriteControl.SetVelocity(Input.GetAxis("Horizontal"));
    }