Exemplo n.º 1
0
 private bool IsGrabbingPossible(int objectLayer, Vector2 touchPosition)
 {
     return(fixedJoint2D == null && 1 << objectLayer == grabbableLayer && joystickPressed &&
            AIBehaviour.IsAimingAt(transform.position, JoystickAssigned.Direction, touchPosition, grabDeltaDirection));
 }