Ejemplo n.º 1
0
    /// <summary>
    /// Allows / restricts player selection of roads in the map.
    /// </summary>
    /// <param name="value">True if player selection should be allowed.</param>
    internal void AllowPlayerSelection(bool value)
    {
        playerSelectionActive = value;

        // Restricts touch navigation while drawing
        multitouch.BlockNavigation(value);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Auxiliar method to make the drag and drop concurrent with the multitouch controller.
 /// </summary>
 /// <param name="value">True if multitouch should be blocked.</param>
 public void BlockMultiTouch(bool value)
 {
     if (multitouch != null)
     {
         multitouch.BlockNavigation(value);
     }
 }