/// <summary> /// Called every time the screen is tapped /// </summary> private void OnTap(TKTapRecognizer recognizer) { if (!enabled) { return; } // Find the nearest node to the tap var node = GetNearestNode(recognizer.touchLocation()); // If the swipe is invalid, don't do anything if (node == null) { return; } // Otherwise, play the move _boardAction.Play(node); }