コード例 #1
0
 /// <summary>
 /// Cancels highlight of a square in the team grid.
 /// </summary>
 /// <param name="square">square to stop highlighting</param>
 protected void CancelHighlightSquare(FridgeGridSquare square)
 {
     if (!isDragging)
     {
         square.CancelHighlight();
         HideTooltip();
     }
 }
コード例 #2
0
 /// <summary>
 /// Highlights a square in the team grid.
 /// </summary>
 /// <param name="square">square to highlight</param>
 protected void HighlightSquare(FridgeGridSquare square)
 {
     if (!isDragging)
     {
         square.Highlight(new Color(1, 1, 0.8f));
         if (square.KernelFruiton != null)
         {
             ShowTooltip(square.KernelFruiton, 1);
         }
     }
 }