예제 #1
0
    private void Update()
    {

        if (!Manager.instance.fullStop)
        {
            //mouseController();
        }
        if (!Manager.instance.fullStop)
        {
            // move3d();
            inputs = new Vector3(InputControl.instance.getAxisControl().x, 0, InputControl.instance.getAxisControl().y);

            if (playerMove!=null) {
                checkers.isTraspasable();
                playerMove.setInput(inputs);
                playerMove.aplyGravity();
                playerMove.PlayerMovement();
                playerMove.calculateDir();
                playerMove.rotate();
                jumpControl.JumpInput();
                dashControl.inputDash();
            }
        }

    }
예제 #2
0
 // Update is called once per frame
 void Update()
 {
     if (!Manager.instance.fullStop)
     {
         asix = new Vector3(InputControl.instance.getAxisControl().x, 0, InputControl.instance.getAxisControl().y);
         playerMove.setInput(asix);
         playerMove.calculateDir();
         playerMove.rotate();
         playerMove.PlayerMovement();
         jumpControl.JumpInput();
     }
 }