Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (_input.Drag())
     {
         Vector2 movementdirection = _input.GetMovementDirection();
         Vector3 movement          = new Vector3(movementdirection.x, 0, movementdirection.y) * Time.deltaTime * MovementSpeed;
         transform.Translate(movement);
     }
     if (_input.Tap())
     {
         Debug.Log("Move");
     }
     if (_input.DoubleTap())
     {
         Debug.Log("Dash");
     }
 }